Here is how to view that. Let's say that you like all kinds of cakes, and are generally tempted to eat more than you should. But you hate chocolate cake. No matter how many times someone puts chocolate cake in front of you, you will not even look at it. That is not a temptation for you.
The Bible says that God HATES sin and Christ HATES iniquity (Heb 1:8,9). Therefore the ability to act sinfully was never there. So no matter how many times Satan would have placed opportunities to sin before Christ, He would have simply ignored them.
But the Lord went a step further. He rebuked Satan with Scripture. Did Satan imagine it was possible for Christ to sin? Yes. He thought that if Jesus of Nazareth is a man who has fasted for 40 days, He would succumb to his temptations (being weak and hungry). But Satan is not all-knowing. He is merely an evil angel, and now he has been thoroughly defeated.
HELPS Word-studies
3985 peirázō (from
3984 /peíra, "test, trial") – "originally to
test, to
try which was its usual meaning in the ancient Greek and in the
LXX" (
WP, 1, 30). "The word means
either test or tempt" (
WP, 1, 348).
Context alone determines which sense is intended, or if both apply
simultaneously.
3985 (
peirazō) means "tempt" ("
negative sense") in: Mt 16:1, 19:3, 22:18,35; Mk 8:11, 10:2, 12:15; Lk 11:16, 20:33; Jn 8:6; Js 1:13,14.
3985 (
peirazō) however is used of positive
tests in: Mt 4:11; Lk 22:28; 1 Cor 10:13; Js 1:12.
https://biblehub.com/greek/3985.htm
The devil tested Jesus as such he can relate to us.