All private swimming pools within the village shall be enclosed by a fence which is at least 6 feet in height. The gate shall be of a self-closing and latching type with the latch on the inside of gate, not readily available for children to open. If the entire premises of the residence is closed, then this provision may be waived by the Village Building Official or his or her authorized representative upon inspection and approval thereof. Horizontally-woven wood fences are not considered acceptable for keeping a pool inaccessible. Doors and gates shall be securely locked when the premises are not being used or when the same are not being supervised by the householder or his or her authorized attendant. A dwelling house or accessory building may be used as a part of the fence required hereunder, provided the dwelling house or accessory building complies with the building setback requirements set forth in Chapter 151. Notwithstanding the above, no fence shall be required for an above-ground private swimming pool having a height of at least 4 feet and a retractable or removable ladder which shall be removed or retracted at all time while the swimming pool is not in use.