"Hate the sin and not the sinner" is a precept which, though easy enough to understand, is rarely practiced, and that is why the poison of hatred spreads in the world... Man and his deed are two distinct things. It is quite proper to resist and attack a system, but to resist and attack its author is tantamount to resisting and attacking one-self. For we are all tarred with the same brush and are children of one and the same Creator, and as such the divine powers within us are infinite. To slight a single human being is to slight those divine powers, and thus to harm not only that being, but with him, the whole world.
In reference to the Christian precept that God "hates sin but loves the sinner". Part IV, Chapter 9, A Tussle with Power. pp. 230-231. Also quoted in The Essential Gandhi: An Anthology of His Writings on His Life, Work, and Ideas (2012), p. 83 - An Autobiography (1927)