Giving into temptation doesn’t usually start with an action, it starts with a casual thought or a quick glance at an image or something right? Often the temptation grabs hold of us because we take a second look or decide to let that thought settle in and take over.
Proverbs 4:25 says, ‘Let your eyes look straight ahead; fix your gaze directly before you.’
If you know you are in danger of giving into temptation that will draw you away from God, practise keeping yourself away from places where that temptation is in plain sight. Let your eyes or thoughts rest on other things.