“I had a bad day, I deserve this.”
“I had a great day, I deserve this.”
“Well, I’ve already done X. Y won’t hurt.”
“Well, I haven’t done X yet, so I can do Y.”
Your mind is disturbingly capable of twisting logic whichever way necessary to justify whatever action you want to take.
Don’t let it. Set your goals. Stick to them.