Whenever you're feeling tempted apply God's word and escape from it. Remember there is always a way out.
"No temptation has overtaken you except what is common to mankind. 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 endure it." — 1 Corinthians 10:13