The real prescription for temptation is diligence in developing a walk with God.
In
1 Peter 1, Peter said:13
Therefore, with minds that are alert and fully sober, set your hope on the grace to be brought to you when Jesus Christ is revealed at his coming. 14 As obedient children, do not conform to the evil desires you had when you lived in ignorance. 15 But just as he who called you is holy, so be holy in all you do; 16 for it is written: “Be holy, because I am holy.”
Then in
2 Peter 1:
2Grace and peace be multiplied to you in the knowledge of God and of Jesus our Lord, 3 as His divine power has given to us all things that pertain to life and godliness, through the knowledge of Him who called us by glory and virtue, 4 by which have been given to us exceedingly great and precious promises, that through these you may be partakers of the divine nature, having escaped the corruption that is in the world through lust.
5 But also for this very reason, giving all diligence, add to your faith virtue, to virtue knowledge, 6 to knowledge self-control, to self-control perseverance, to perseverance godliness, 7 to godliness brotherly kindness, and to brotherly kindness love. 8 For if these things are yours and abound, you will be neither barren nor unfruitful in the knowledge of our Lord Jesus Christ. 9 For he who lacks these things is shortsighted, even to blindness, and has forgotten that he was cleansed from his old sins.
10 Therefore, brethren, be even more diligent to make your call and election sure, for if you do these things you will never stumble;
Peter suggests to us to add to our faith 7 things. He does not suggest focusing on “fighting temptation”. My experience teaches me that focusing on the problem is a recipe for disaster. BUT focusing on these things, working on righteous things, always leads me to a deeper walk with fewer pitfalls.
Peter goes on to say, that this very thing is the one thing he has taught everyone, every time he visits them. He further says, God showed him he was about to die, so he wanted to teach this one last time. Peter thought it was important!