Commentators explain that this verse presents a clear test of one's spiritual state. Your reaction to wickedness reveals your relationship with God's law. As John Gill notes, those who forsake the law praise the wicked because "every like loves its like." They affirm sin in others because they practice it themselves. Conversely, those who keep the law are compelled to oppose wickedness.