Averting Evolutionary Suicide from the Tragedy of the Commons