We are told temptations will come, but we can take heart that God is with us. He who provides salvation also provides a way to endure temptation, just as Christ himself did. When trials come, go to Him in prayer.
1 Corinthians 10:13
"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."