First, you need to realize that even heroes in the Bible experienced temptation. You are not alone. For example, Abraham was the father of the faithful, but he lied to the Kind of Egypt for fear that his wife would be taken from him. Moses was the meekest man alive yet he spote the rock in anger. Elijah was a man of courage, but he fled from Jezebel. And David was a man after God's own heart, but he murdered a man.
Second, the Bible provides the answer to how to deal with temptation.
On reaching the place, he said to them, "Pray that you will not fall into temptation."
1 Corinthians 10:13
No temptation has seized you except what is common to man. And God is faithful; he will not let you be tempted beyond what you can bear. But when you are tempted, he will also provide a way out so that you can stand up under it.
Put on the whole armour of God, that ye may be able to stand against the wiles of the devil.
Because he himself suffered when he was tempted, he is able to help those who are being tempted.
Submit yourselves therefore to God. Resist the devil, and he will flee from you.
The Bible also has a promise for those who endure: James 1:12-16 - Blessed [is] the man that endureth temptation: for when he is tried, he shall receive the crown of life, which the Lord hath promised to them that love him.