Undoubtedly, knowledge of scripture will prevent us from falling into temptations. This takes discipline and commitment. Christ used it to rebuff the devil and his attempts to entice Him. Satan used real needs as a basis for temptation. He sought to exploit potential weaknesses like hunger, impatience, pride, etc. Possible doubts made the temptations real, e.g. would God really provide or protect Jesus? Satan sought to use these things to create an inappropriate desire. Jesus showed us the importance of knowing and applying Scripture to combat temptation. Matthew 4:1-11.