God provides us with a way of escape
John 16:7-11But I tell you the truth, it is to your advantage that I go away; for if I do not go away, the Helper will not come to you; but if I go, I will send Him to you. And He, when He comes, will convict the world concerning sin and righteousness and judgment; concerning sin, because they do not believe in Me; and concerning righteousness, because I go to the Father and you no longer see Me; and concerning judgment, because the ruler of this world has been judged.
1 Corinthians 10:13
No temptation has overtaken you but such as is common to man; and God is faithful, who will not allow you to be tempted beyond what you are able, but with the temptation will provide the way of escape also, so that you will be able to endure it.