Self-Closing Gates: Automated Safety at Elevated Entry Points