All of this points to the extreme latitude that genies have in granting the first three wishes, and clarifies that the wish granting compulsion applies only to those three. A genie may use magic in self-defense–but note that Jeanie didn’t kill her attacker.