In the Book of Mormon, 2 Nephi 4:17-19 is an example of a prophet named Nephi that faced temptation. It reads:
"Nevertheless, notwithstanding the great goodness of the Lord, in showing me his great and marvelous works, my heart exclaimeth: O wretched man that I am! Yea, my heart sorroweth because of my flesh; my soul grieveth because of mine iniquities. I am encompassed about, because of the temptations of the sins which do so easily beset me. And when I desire to rejoice, my heart groaneth because of my sins; nevertheless, I know in whom I have trusted."
This great prophet of God even has temptations that "so easily beset him." But he knows who he trusts in, which is our Heavenly Father! We need to lean on him. Ask for his help! Plead with him that he will help you to not fall into temptations. Further in the chapter, versus 26-35, is an amazing example of Nephi praying to the Father for help and support. If you are struggling with a temptation, look to our prophets for examples of leaning on Heavenly Father to overcome sin. Pray with all the energy of your heart. Ask him to have the strength to overcome those things that "so easily beset" you. He is there, He will help. Why? Because He loves you!
"Come unto me,
all ye that labour and are heavy laden,
and I will give you rest." Matthew 11:28