Once you've hung a gate and tested its swing, install a stop on the latch post to prevent the gate from swinging past the post when closed. The stop is nothing more than a narrow board ( 1/2 1 inch), ( 2 in., etc. ) cut to the height of the gate...
Home Improvement home improvement latch gate thumb post latches side