Do not love sin when trying to escape temptation
Watch and pray that you may not enter into temptation. The spirit indeed is willing, but the flesh is weak.” (Matthew 26:41)
The end of all things is at hand; therefore be self-controlled and sober-minded for the sake of your prayers. (1 Peter 4:7)
It’s pointless for anyone to pray to overcome temptation when that person saying that prayer is not willing to stop liking the sin. Yes, there are people who are scared of the eternal consequences of sin but do not care if the temporary pleasure they get offends the Lord God or even defiles their own soul and body. So its best to abhor the sin that tries to entice you and pray for overcoming it at the same time.