The Torah reading called "Judges" opens with the command to appoint judges and law-enforcement officials in all city gates that the L-RD G-d is giving, for every tribe, and they shall judge the people with righteous judgement.
A judge refers to one qualified to deliver judgments according to the laws of the Torah with mishpat (justice) and tzedakah (righteousness) and were to be entirely impartial in their findings. The officer then enforces these legal judgements, even by force if necessary. Warning is giving to the judges that they do not show any kind of partiality or favouritism and are forbidden from accepting a bribe. It is written that G-d shows no favouritism, but accepts anyone from any nation who fears Him and does what is right.
Everyone who fails to listen to that prophet will be removed from the people and destroyed.