"the world" in this negative sense doesn't mean the creation, but creation insofar as it is opposed to God and his reign. We should not love the world apart from and contrary to God. But we should love the world in God and in his will.