Hatred, judgment and criticism are consequences of forgetting Hashem, and a suppression of the light of holiness.
The stronger the search for Hashem grows in a person’s heart, the broader the love for all creatures within him. Then he loves even wicked people and heretics and desires their rectification, because he in actuality rectifies them with the greatness of his faith.
However, in a manifest way a person can only show love to those people in whom he finds something good as well, so that he is able to bind his love to their good side and so that he will not at all be harmed by the evil and ugly aspect of those people, whom he loves due to his good trait of loving others--which means that he is good and does good to both the wicked and the good.
Orot Hakodesh III, p. 317