Do you know that you don't have to cave in?
Jesus was tempted and like all of us He was tempted at the point of need. He had just fasted forty days and he was hungry; that's when the devil showed up. Have you noticed that when you are at your lowest point you are more prone to temptation?
The devil tempted Jesus three times and each time Jesus quoted scripture to rebuff Satan. It was enough to quote the scripture because it allowed him to set his mind against Satan; it reinforced that He would not give in to the temptation. This worked for Jesus and it can also work for us. Eve was also tempted by the devil, but she had nothing in her arsenal to resist Him. She did not quote scripture and what Satan said sounded reasonable to her, until she gave in. And that's the trouble - temptation always seems enticing at first. To presume that God will protect us from the consequences of foolish or disobedient actions or thoughts is a kind of spiritual pride. We test God when we put ourselves into situations outside of his will. Actions such as unhealthy behavior, the edge of sexual immorality, and following your plans and then including God as an after thought.
Temptation is somewhat insidious especially if by caving in, it appears to meet a need.
The only way to avoid temptation is to refuse to compromise; the only way to do so is to feed your mind so that when you are tempted you know how to deal with it.
Life is full of temptations; I find the farther away I am from my base the easier it is to cave, give in and rationalize bad behavior, but when I renewing and transforming my mind I can stare temptation in the face and win. Each time I win, God sends His angels to minister to me, just like He did with Jesus. Ministering to me is how my needs are truly met.
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. 1 Corinthians 10:13
Do you have what it takes to resist temptation? What if anything is tempting you right now? (Use the verses above as an initial means of not yielding.)