I have an idea for a conworld where genies (called Djinn) exist. In this world, the Djinn are confined to various objects like lamps, bottles, rings, etc. because the humans feared their power and thought that restraining the djinn were the only way to be safe, so the Djinn were trapped by powerful sorcerers. I figured it could also be a form of punishment as there was a war that involved the Djinn nearly destroying all life, and it made people realize how dangerous they can be. The only real problem I see with genies is that I think they would be an easy trap for deus ex machinas. I have read up on some of their powers and rules, and in general, a genie cannot directly kill someone in the sense that the master cannot wish someone dead, although they can wish to be sent to a parallel universe where the said person is dead or never existed. The owner also cannot wish to be a god or anything that outranks a genie (I think genies are considered as higher than a human but lower than an angel), and there is three wish rule, though I may tweak and play around with that. As for the three wish rule, I think it will be more of a contractual thing with some djinn adhering to it, and others being more generous, so it is an individual thing rather than something all genies do. It may also depend on how much the djinn likes their master, in which case, they will be more likely to grant more than three wishes unless they had already agreed to the three wish rule before hand. Even a genie trapped inside an object can still be very dangerous as a malevolent genie may attempt to persuade his naive or foolish master into doing his bidding instead of the normal "genie obeys master" thing." What can I do to prevent a person from wishing their way out of most situations or other easy outs?