No action for trespass shall lie against any person crossing or working upon lands of another to extinguish wildfire. Any duly authorized employee of the department and any law enforcement officer or fire protection officer having jurisdiction to enforce any provision of this amendatory and supplementary act shall have power to enter upon any forest lands at any time in order to inspect the same and to ascertain the degree of compliance with this act and rule, regulation or order adopted pursuant to this act.
N.J.S. § 13:9-17