These were my first thoughts on the topic:
All have free will, humans, Satan, malakim, and whatever else there is.
Without Satan rebelling, all being would be like automatons. This creates a choice, a test to see who is worthy of eternal life, without this test it's either automatons or none would ever prove their worth.
Remember Yahshua/Jesus was also tempted and we have Him to rely on.
Hebrews 4:1-15, "Seeing then that we have a great High Priest Who has ascended into the heavens: Yahshua the Son of Yahweh, let us hold fast our profession. For we do not have a High Priest Who cannot sympathize with our weaknesses, but was in all ways tempted as we are--yet was without sin."
1 Peter/Kepha 1:3-7, "Blessed be the Strength and Father of our Master יהושע Messiah, who according to His great compassion has caused us to be born again to a living expectation through the resurrection of יהושע Messiah from the dead, to an inheritance incorruptible and undefiled and unfading, having been kept in the heavens for you, who are protected by the power of Yah through belief, for a deliverance ready to be revealed in the last time, in which you exult, even though for a little while, if need be, you have been grieved by manifold trials, in order that the proving of your belief – much more precious than gold that perishes, and proven by fire – might be found to result in praise and respect and esteem at the revelation of יהושע Messiah,
1 Peter/Kepha 4:12-13, "Beloved ones, do not be surprised at the fiery trial that is coming upon you, to try you, as though some unusual matter has befallen you, but as you share Messiah’s sufferings, rejoice, in order that you might rejoice exultingly at the revelation of His esteem."
Zecharyah 13:9, “And I shall bring the third into fire, and refine them as silver is refined, and try them as gold is tried. They shall call on My Name, and I shall answer them. I shall say, ‘This is My people,’ while they say, ‘ יהוה is my Strength.”