You fall into the common error of equating the selfish gene with selfish individualism. Life is more complicated than that. There are times when protecting your family or the wider community at the risk of your own life is absolutely what is best for the survival of your genes.
And for sure, 'dove' is a lousy strategy in iterated prisoners dilemma. Hit him if he hits me first works fairly well though.