When you're tempted, keep your vulnerability in mind and work out ways to protect yourself. God warns us to never to get cocky and overconfident about our ability to handle temptation; that's the recipe for disaster.
In fact, the prophet Jeremiah said, "The heart is deceitful above all things and beyond cure" (Jeremiah 17:9 NIV).
That means we're good at fooling ourselves. Given the right circumstances, any of us are capable of any sin. We must never let down our guard and think we're beyond temptation: "Don’t carelessly place yourself in tempting situations. Avoid them" (Proverbs 14:16 TEV).
Remember it's easier to stay out of temptation than to get out of it. The Bible says, "Don't be so naive and self-confident. You're not exempt. You could fall flat on your face as easily as anyone else. Forget about self-confidence; it's useless. Cultivate God-confidence" (1 Corinthians 10:12 MSG).
One final note from Scripture: "But remember that the temptations that come into your life are no different from what others experience. And God is faithful. He will keep the temptation from becoming so strong that you can't stand up against it. When you are tempted, he will show you a way out so that you will not give in to it" (1 Corinthians 10:13 NLT).