I find if I allow myself an occasional bad snack or meal, I am less likely to binge when it is forbidden. And Ladyfilosopher is right, entering everything you eat and do, helps give you a perspective on the goods and the bads.
I had two samoa girl scout cookies yesterday, entered it, and do not feel guilty! I eat vanilla ice cream with a little chocolate syrup for an occasional treat at night. It is far better than having cake, brownies, cookies, etc.
It is like when I quit smoking decades ago! all the times I had "quit" before, I had avoided everything that I associated with having a cigarette. When I did successfully quit smoking, I did not avoid all those situations and I succeeded. I had to learn how to not smoke in those situations, so why avoid them? I would intentionally go to my neighbor's home where everyone smoked, visit and drink coffee while she was smoking.
Now I am learning to be healthy while not avoiding all the bad foods. If I mess up, and I have, tomorrow is another day. Today's failures make tomorrows successes. Moderation is a key factor...
Don't beat yourself up.
Accept that you are human.
Know that you can do this!