The Lord permits His people to be subjected to the fiery ordeal of temptation, not because He takes pleasure in their distress and affliction, but because this process is essential to their final victory. He could not, consistently with His own glory, shield them from temptation; for the very object of the trial is to prepare them to resist all the allurements of evil.
Neither wicked men nor devils can hinder the work of God, or shut out His presence from His people, if they will, with subdued, contrite hearts, confess and put away their sins, and in faith claim His promises. Every temptation, every opposing influence, whether open or secret, may be successfully resisted, “not by might, nor by power, but by My Spirit, saith the Lord of hosts.” Zechariah 4:6. — The Great Controversy, p. 528-529