Swimming pools accessory to residences shall be enclosed by a security fence of a minimum height of five feet with a gate containing a self-closing positive latch device to ensure that the pool is enclosed at all times.