I'm not so well-disposed to sociobiology, from which social evolution comes. However, it is true that societies compete for scarce resources in the same way that organisms or populations do. Hence, it is true that altruism, honesty, courage, loyalty and kindness have survival value for societies.
Kinship selection is a measurable fact in biology, and no doubt it works in humans, too. If people are altruistic toward others to the degree that they share genes with them, their genes are likely to be continued in the population. It was Jesus' great message that all humans should be one kinship group. He repeatedly wove that message into almost everything He taught. It often runs contrary to human behavior, but it is not only what He wants, it's inherently good for mankind.
And it's written in natural law, more fundamental than kinship selection. As the Chinese proverb has it, even the worst brigand, seeing a child poised at the edge of a well, feels an urge to run and save it. What Jesus is asking is for us to follow our own created nature which He gave to us, and to resist the evil which He did not give to us, but came from the rebellion of our first parents. There are sociobiological explanations for this, of course.
Sometimes two truths juxtapose nicely. As one wise person observed, truth cannot oppose truth. Oh, and I am a teacher. Sorry about that.