It's important to understand that resolve is something you need to practice, it's like a muscle. Every time you give in to a temptation, your resolve weakens. Every time you resist, it gets stronger.
Practicing like this quite literally rewires your brain. Strengthens the ability of the amygdala to regulate behavior. If you give in to every impulse, you teach your brain to exercise less impulse control.