These rules could save humanity from the threat of rogue AI