Pools shall be enclosed by a wood or metal fence whose top is at least four feet but not more than eight feet above surrounding ground, access through which shall be through a gate capable of being locked. If the pool is above ground with a deck at least three feet above ground level all around the pool, surrounded on its outer edge by a fence at least three feet in height above the deck, with no openings more than six inches wide, no fence at ground level will be required.