There is a thought process called the "Last Supper" mentality. Have you heard of it?
Basically, it's the idea, typically before starting a diet, that you'll eat what you want because, tomorrow, you'll start eating "better/healthier/less". You then may overeat to compensate for what you won't get or have a sense of scarcity about what you may or may not be able to have.
I feel like I do this fairly regularly, especially since I tend towards restriction in my eating habits. Whenever I eat something "bad", I mentally plan to restrict the next day.
At this point, I am almost forcing myself to eat more "bad" foods in the hopes of breaking this thought process, to remind myself that, look, it's still there and I can have more! I think so many years of restricting are causing this process to take a little while but, hey, I'm enjoying my eating in the meantime!