This reminds me of the theory of Evolutionary Stable Strategies, as described by Dawkins in The Selfish Gene.
I can't remember all the details, but from what I remember populations where individuals who help each other by default, but stop offering help to an individual who abuses the system, thrive best.
In other words be nice, but don't be a walkover.
Here's a youtube video which covers some of the same ideas.