G-D Created Human Beings with Free Will. Thus the ability to choose to do good or to do evil.
See Deuteronomy 30:19.
Angels have no free will in Judaism. They are G-D’s messengers, and tools. That is why we
Jews do not believe as Christians believe, re. ‘Satan’ (in Hebrew, ‘Ha-satan’ , the ‘trickster’; it’s the job, not the tool’s name).
You got that belief from Zoroastrianism, which teaches a Dualist setup (G-D vs. Satan).
Judaism teaches that there is One G-D; HE Is The Source of All, Good AND Evil.
But HE Wants us Human beings to choose Good. It’s our choice.
“Turn to Me and be saved, all the ends of the earth, for I am G-D, and there is no Other.” (Isaiah 45:22) .
Code:
I am proud and honoured that my soul was privileged to be at Horev (Mt. Sinai) to receive G-D's Law directly from G-D, along with all of the People of Israel ever.
Shabbat Shalom,