Whenever it shall appear that any person is violating, or threatening to violate, any statute of this state with respect to the conservation of oil or gas, or both, or any provision of this act, or any rule, regulation or order made thereunder, the division through the attorney general shall bring suit against such person in the county of the residence of the defendant, or in the county of the residence of any defendant if there be more than one defendant, or in the county where the violation is alleged to have occurred, for penalties, if any are applicable, and to restrain such person from continuing such violation or from carrying out the threat of violation. In such suit the division may obtain injunctions, prohibitory and mandatory, including temporary restraining orders and temporary injunctions, as the facts may warrant, including, when appropriate, an injunction restraining any person from moving or disposing of illegal oil or illegal oil product, or illegal gas or illegal gas product, and any or all such commodities, or funds derived from the sale thereof, may be ordered to be impounded or placed under the control of an agent appointed by the court if, in the judgment of the court, such action is advisable.
NMS § 70-2-28