The pastor is a fool. Love the sinner but hate the sin. The point being we are all sinners in this world. There is not one of us who is righteous before God. Please look at these quotes (dozens more avail):
1 John 4:20
If anyone says, "I love God," and hates his brother, he is a liar; for he who does not love his brother whom he has seen cannot love God whom he has not seen.
John 13:34-35
A new commandment I give to you, that you love one another: just as I have loved you, you also are to love one another. By this all people will know that you are my disciples, if you have love for one another."
Romans 12:10
Love one another with brotherly affection. Outdo one another in showing honor.
Luke 6:31
And as you wish that others would do to you, do so to them.
1 John 4:7-10
Beloved, let us love one another, for love is from God, and whoever loves has been born of God and knows God. Anyone who does not love does not know God, because God is love. In this the love of God was made manifest among us, that God sent his only Son into the world, so that we might live through him. In this is love, not that we have loved God but that he loved us and sent his Son to be the propitiation for our sins.
1 Peter 4:8
Above all, keep loving one another earnestly, since love covers a multitude of sins.
Galatians 5:13
For you were called to freedom, brothers. Only do not use your freedom as an opportunity for the flesh, but through love serve one another.
John 15:13
Greater love has no one than this, that someone lay down his life for his friends.
John 14:15
"If you love me, you will keep my commandments.
1 John 4:11
Beloved, if God so loved us, we also ought to love one another.
1 John 3:18
Little children, let us not love in word or talk but in deed and in truth.