That is why you order them to never try to harm you are to act in what they perceive to be your best interest. And go and get a permanent telepathic bond with them before ordering the IA to always obey instructions delivered over the bond.