When temptation arises at that moment there is nothing you can do because whatever you think, you will be swayed by your emotions. Emotions are much more powerful than your thought process. But still when you strongly feel this is no good, I should resist this, that itself will bring a break.
It is like driving a car that has breaks, anytime you want you can put the break. That will power one needs to develop. For that prelude is broadening your awareness. Then definitely the temptations become smaller and then disappear.