​”The world cannot hate you, but it hates me because I testify about it that its works are evil.” – John 7:7 ESV
Jesus speaking to his own unbelieving brothers in John 7. He draws a line between two sides.
He says that the world hates Him because He testifies about sin and evil works. 
He doesn’t soften or compromise the truth about sin to make it more comfortable or palatable to their flesh.
So, are we hated or loved by the world – because of either our common passions or our peculiar difference? 
“But me it hateth, because I testify . . .—He had placed Himself in a position of antagonism to it, and must necessarily do so. His words and acts must be a witness against the evil of its deeds. This is the condemnation, that light is come into the world, and men love darkness rather than light, because their deeds are evil. But men who love darkness must also hate light. Its very presence makes the darkness visible; and nothing cuts to the very quick, like that which makes the heart condemn itself.” – Ellicott
“He proclaimed that men were depraved, and the result was that they hated him. We may expect that all who preach faithfully against the wickedness of men will excite opposition. Yet this is not to deter us from doing our duty, and, after the example of Jesus, from proclaiming to men their sins, whatever may be the result.” – Barnes
“The world has no quarrel with you, for ye bear no testimony against it, and so draw down upon yourselves none of its wrath; but I am here to lift up My voice against its hypocrisy, and denounce its abominations; therefore it cannot endure Me, and one false step might precipitate its fury on its Victim’s head before the time.” – Jamieson-Faussett-Brown
“By the world, our Saviour plainly understandeth the men of the world; men not regenerated, renewed, and sanctified. These men, saith he, cannot as yet hate you… But, saith he, me it hateth: that is apparent from what we met with John 5:18. But this was not for any fault in Christ, but only for his preaching the doctrine of the gospel, and free reproving them for the evil of their works, the corruption of their doctrine, and the errors of their life and conversation.” – Matthew Poole
“The world cannot hate you,…. Because they were of the world, belonged to it; they were like unto it, and every like loves its like; and they were the world’s own, and therefore instead of being hated, were loved by it; and they walked according to the course of it; and wicked men not only take pleasure in sin, but in them that do it:

but me it hateth; though without a cause; that is, without a just cause, or reason; a cause there was, and it follows:
because I testify of it, that the works thereof are evil; even those works of it, which were reckoned good works; Christ bore his testimony of these, that they were evil; being done either not according to the command of God, but the traditions of the elders; or not from a right principle, as of faith and love, nor to a right end, as the glory of God; but only to be seen of men: and very severely did he inveigh against the pride, covetousness, hypocrisy, and uncleanness of the Scribes and Pharisees: and so he continued to do, and this drew upon him their hatred and ill will.” – Gill