They were hypocrites.
They were not devils. They were flesh and blood human beings. Devils are incorporeal spirits, fallen angels.
So saying they were devils, is it inconceivable that they were fallen angels and spirits in our form, having been made men after the flesh?
Proverbs 16:4
The Lord has made everything for its purpose, even the wicked for the day of trouble.