Understand yourself. Learn what you need, and when, and why. Everyone is unique and there are no hard-and-fast universally applicable laws. Our bodies are very good at telling us what we need, and knowing what you need gives control over how you choose to satisfy those needs
Find your binge triggers, be they food or places or people or feelings. Avoid them at all costs. Figure out more acceptable ways of dealing with those triggers than stuffing yourself silly