This implies that it doesn't matter to help anyone from suffering from anything. It implies that when somebody is screaming of agony from cancer, helping the person does not matter. Further it would imply that it does not matter if somebody were to crack your face for no reason.
The fact that the world will end in billions of years is irrelevant to individual humans who only live for a few decades and who's well-being can be improved by our efforts to "make the world a better place".
It is only possible if people work together to create such a world. And practically, it would not be possible for everyone simultaneously to put his/her narrow self-interest aside to create a better world.
We are not talking about a perfect world here, but a "better" world. If only ten, a hundred or a billion people did what they could to make the world a better place, it would matter.
The existence of individuals who are destroying the world is not a reason for other people to give up on trying to improve the world. In fact, the existence of individuals who are destroying the world is one of the primary reasons for trying to improve the world.