I used to not be able to do moderation. However, I've had to learn moderation. It's the only way I managed to overcome my binge-eating disorder. I'm going to have to face food every. single. day. for the rest of my life; I can't simply pretend that chocolate or bananas do not exist.
I love eating, and I love eating delicious food. If I even hint at restriction, I'll binge. So for me, it's the other way around: I have to "permit" myself to eat anything I want, and only then can I decide if I want to eat it or not. I have to eat a banana and chocolate every day. Even if I don't eat them, I promise myself I can have them at any time. Some days I don't even wind up eating my daily allotment because I gave myself permission to have it and instead elected to eat something else.
That said, sometimes my brain chemistry gets wonky by the chemicals in certain foods or fluctuating hormones (ice cream + PMS = disaster), resulting in me circling said certain food like a shark, wringing my hands with anxiety, to pick it up and sniff it then put it away again only to pull it out again and pick tiny crumbs off it. Even then, I don't binge on the food, though I do become somewhat obsessed with it until it's gone. Yay for having OCD! xD
(Fortunately, I don't regard things like gluten or dairy or other poisons as "food" so they're not triggers for me. Cakes and cookies can sit in the house and I'll ignore them because they're as much food to me as the plastic they're covered with.)