Israel was God’s special nation among the pagans. It was a nation in the true sense of the word, with government, land, borders, states (tribes), and a population based on birth.
As such, the government was supposed to represent God’s will and promote it among the people. The government was first made up of judges and prophets. Then the people demanded to be ruled by a king, like the Gentiles. The king should encourage justice and righteousness and quickly punish evildoers.
So the book of Proverbs speaks to the role of the king in Israel, using the ancient practice of winnowing grain to remove the chaff as a figure.
A wise king gets rid of evil people. He runs the threshing wheel over them. Pro 20.26 NIrV
God’s people today is the church. We do not have judges over civil matters or kings who rule. (Though see 1Co 6.1-8.) But a principle remains both for the church and for those in government.
In government, it always serves the people to punish the wrongdoer and reward those who do good. It ought to be obvious that wrongdoers should be kept out of government. When government officials do wrong, they ought to be expelled from their posts. A government may be judged by whether it does what is an obvious benefit for the people or by whether it harbors, protects, and rewards wrongdoers.
In the church, evil is not to be tolerated either. God seeks the restoration of sinners. Christians work to save people through the forgiveness of sin. But the time does come to remove people from the church who refuse to submit to the will of God. (Nor should the church allow people to enter who refuse to repent.)
Wise servants will be at the forefront of keeping the church pure, both in doctrine and holiness.