When you hear that people have done something like that, check the matter out carefully. If it’s true, an evil thing has been done in Israel. The Lord hates that.
Then you must certainly kill with your swords everyone who lives in that town. You must destroy it completely. You must wipe out its people and livestock.
The person might have worshiped or bowed down to other gods. That person might have bowed down to the sun or moon or stars in the sky. I have commanded you not to do these things.
The judges must check out the matter carefully. And suppose the witness is proved to be lying. Then he has said something false in court against another Israelite.