Swimming pools shall be entirely enclosed by buildings, fences or walls which are not less than five feet in height at any point, measured immediately adjacent to any such building fence or wall on the side of such building, fence or wall opposite the swimming pool. A fence or wall enclosing a proposed or existing swimming pool shall not exceed six feet in height, measured from the highest ground elevation immediately adjacent on either side of said fence or wall. The fence or wall shall have self-latching gates or doors not less than five feet in height, and each such gate or door shall have latches not less than four feet above the ground level. All fencing and walls must be in place and approved by the Building Inspector before water shall be allowed in a pool.
(`78 Code, § 17.70.020.)