Lead us not into temptation,
but deliver us from evil.
While granting at the outset the impossibility of God proposing evil as a good (which is what James 1:13 speaks of in forbidding us to see temptation as from God), nevertheless God has a right to test anything he pleases or even place it in a circumstance where sin is likely or foreseeable, even to a finite intelligence looking at the situation. so what if he chooses to place it in such a circumstance? Either the creature finds the power to resist or not; and if not, he either keeps asking or not. Again, if he asks he either receives or not; and if he doesn’t receive he either keeps asking or not. This story ends either with receiving the grace to resist or with ceasing to ask; if the first then he is delivered from evil, if not then the divine wrath delivers him over to what is shameful (Rom 1:26.)
Free choice has a role to play in all this, but no created mover is a first mover. As our whole substance is from another, a fortiori our accidental power to act is from another. This is what James explains later in chapter 1: Every good gift and every perfect gift is from above, coming down from the Father of lights, with whom is no variableness, nor shadow of changing. The variation and changeability of our action – even or especially our free choices, and above all the best choices to ask for divine help to grow in virtues – trace back to the immobility of pure actuality.