(a) Every swimming pool, including existing pools, shall be completely surrounded by a fence or wall not less than four feet in height, which shall have no openings, holes or gaps larger than four inches in any dimension except for doors and gates. A dwelling house or accessory building may be used as part of such enclosure. (b) All gates and doors shall be closed at all times when not in actual use, except that the door of any dwelling which forms a part of the enclosure need not be so equipped. Every opening through such enclosure shall be equipped with a self-closing and self-latching device for keeping the gate or door securely closed. (c) The issuing authority may require modifications on an individual basis, of fences, walls, gates or latches, where it may be necessary to improve safety.