In those days there was no king in Israel: every man did that which was right in his own eyes.
The way to determine the rightness or wrongness of Israel’s actions is to compare them with God’s revealed will in the Mosaic Law.