6. An aboveground pool with a wall height of at least 1.2 m from the ground at any point or a portable pool with a wall height of 1.4 m or more is not required to be surrounded by an enclosure if access to the pool is by(1) a ladder equipped with a self-closing and self-latching safety gate preventing its use by children;
(2) a ladder or a platform access to which is protected by an enclosure having the features described in sections 4 and 5; or
(3) a patio attached to the residence and laid out so that the part giving access to the swimming pool is protected by an enclosure having the features described in sections 4 and 5.