Preventive relief is given by prohibiting a party from doing that which ought not to be done.
(Enacted 1872.)