The devil is the evil spirit of the lower places, he made himself a fugitive from the heavens as the devil and his name was Satan. Thus he became different from the angels, but his nature did not change his intelligence as it applied to his understanding of righteous and sinful things.