But a prophet who presumes to speak in my name anything I have not commanded him to say, or a prophet who speaks in the name of other gods, must be put to death."
Well that settles that.
If followed it would settle that. But if not followed, amongst other disobediences, Deuteronomy 28:15-68 comes in to play.