I once heard that the definition of “devil” is “diabolos” ..or the “one who thrusts thru like a rock.” Your warfare is not a one shot thing. You need a CAMPAIGN mentality not a BATTLE mentality. To be honest, you can lose a battle and still win the war because wars are won by a succession of battles i.e. a Campaign.
Likewise the enemy will keep coming at you. Through constant vexation and harassment, day by day, the enemy beats against our will until we are worn out and give in. Give in once and it's easier to give in the next time. A single thread can be snapped but once several threads combine it becomes a rope. Thats the way habits form spiritual or otherwise. Samson could break any rope, but Delilah broke his will and destroyed him. How? She “pressed him daily with her words, and urged him so that his soul was vexed unto death…” (Judges 16:15-17)
The enemy starts TEMPTING the senses and TALKING to your mind…the two go together. This is how you can end up one day in the wrong relationship or in the grip of a terrible habit or compromise. Samson's problem was he didn't leave the presence of the temptation….he hung around. He liked it and assumed he could get out whenever he needed to. He was wrong.
Joseph was exposed to the same strategy. Great favor often comes before an attack like this and even greater favor follows, if the attack is survived. Note what the Bible say's about the wife of Potipher.”And it came to pass, as she spoke to Joseph DAY BY DAY, that he hearkened not to her, to lie by her, or to be with her.” He had a persistent tempter but he refused to stay in her presence any longer than he had to. My take is that Samson had more anointing than Joseph, but Joseph had the stronger inner man. Both women were persistent and used words, but one man escaped and another was captured. Learning to finish your race sometimes requires you to run away.
The story here is bigger than how to handle sexual temptation. The real story is how to discern a situation, avoid temptation and how to deal with the DAILY VOICE. By that I mean Satan is always talking and it is so subtle it sounds like you talking to yourself. (Battle Campaign) If you keep yourself full of the word of God and sit under a variety of powerful and relevant teaching, you will discern the voice of the tempter and refuse to lie down next to the conversation.