1 Corinthians 10:13King James Version (KJV)
13 There hath no temptation taken you but such as is common to man: but God is faithful, who will not suffer you to be tempted above that ye are able; but will with the temptation also make a way to escape, that ye may be able to bear it.
Temptation will always be a prat of life until we transition from this physical life and into the spiritual realm of our Lord and Saviour, Jesus. In the "mean time" we apply the Word of God to our lives, especially the New Testament. We renew our minds to the Word of God. We can escape any temptation that comes our way. There is always a way out of the temptation and if we can see that escape we will not follow through with the fulfilling of that temptation. That means we need to know the Lord well enough to hear His voice ways He will talk with us. You find that out by talking with Him each and every day in prayer and thought and establishing a relationship with Him. The Bible and reading it will lead us in the way He talks. He wants you to pursue Him.
In the name of Jesus, I bless you with the life of God.