Consider also the Yazidi who believe as the Hebrews did that Satan is not the devil, not a fallen angel but a current archangel.
When he refused to bow to to Adam it was a test of fidelity to God's own law.
God made Adam out of clay in his own image therefore to bow down to him would brake God's law against bowing to craven images.
God is not above God's law so in disobeying his command he proved himself the most legally prudent of all the archangels.
They revere Shaytan as the peacock angel, and God's representative on Earth.
They don't see him as the Devil because in their view all evil comes from humanity and is punished by him with God's authority.
This holds up with the Jewish idea of Satan being the prosecutor in God's court and an angel that is sent down to test mankind, with Michael as the defense barrister for humanity.
But it's in complete contrast to Christian and Islamic ideas where Shaytan/Satan is the enemy of God and Man.
The Yazidi came before the Christians and the Muslims and yet they have been persecuted for being devil worshippers by successive Islamic regimes.
They even have their own version of the Pandora myth, these religions do love taking potshots at the first woman.