It is only when we give in to the temptation and follow through with action that temptation gives birth to sin. If you plan to resist the temptation you must. Not be weakened by your situation. Not be deceived by the persuasion. Not be confused with the immediate results.
Self control is always in view and is the ground work for greatness.
This is not to say if you have given into to sexual temptations in the past that you are doomed. As long as you are alive there is always the opportunity to move forward in God's plan. This means there is no room for guilt or regrets. We cannot change the past but we can control our present decisions. God's grace always seeks for restoration rather than condemnation.