We do not “have to” yield to temptation. Be discerning of what is happening. Look for the way out, and if you do not see it, look for the way through. Be open to the voice of the Spirit. Pray! Bring the wisdom of the Bible into the moment. Jesus met temptation with the truth of Scripture. Look to Jesus as the model Overcomer. He was tested for real, and He passed the test. From His throne He gives grace to help you pass the test.
“For we do not have a high priest who cannot sympathize with our weaknesses, but One who has been tempted in all things as we are, yet without sin. Therefore let us draw near with confidence to the throne of grace, so that we may receive mercy and find grace to help in time of need.” Hebrews 4:15-16 (NASB)