Just think of self preservation as an advanced anti-virus (and the more you learn about bacteriophages the more this makes sense). It makes no sense for an AI to have no ability to fight back against being taken over at multiple levels.
You're applying evolutionary reasoning to an algorithm (gradient descent) which does not involve fitness selection in any way, shape, or form. This is bogus.