Outside the gate
Outside in the world is one of the hazardous places for a child. A moment's inattention and your child can be away seeking water without you. Infact, when a child goes missing always check the water around you as they are often fascinated with it and are drawn to it.
Always supervise your child, identify water hazards; restrict access to the hazard and ensure that they are supervised at all times.
Remember to shut gates and keep swimming pool gates shut at all time - this means not wedging it open for ease. You might forget and your child could easily get inside your pool area resulting in disaster.