What does Deuteronomy 13:5 mean?
As for that so-called prophet or dreamer, they must be put to death, because they tried to turn you away from the God who brought you out of Egypt and set you free. They were trying to lead you off the path God told you to walk. Get rid of this evil from your community. Deuteronomy 13:5 - Modern Text Bible
(The penalty for leading people away from God was severe, because it threatened the whole community's relationship with God. The focus is on protecting the people from spiritual harm.)