Do not succumb to "we have to win the race" reasoning and escalation, when the race is leading off a cliff. It is, in fact, possible to stop things via international cooperation. Treat it the way we do nuclear proliferation. (Efforts to stop nuclear proliferation have not been perfect, but they've been incredibly effective and made it much more difficult to make the problem worse than it already is.)
If the other guys have an army of killer robots and you don't, you are going to die.