Every railroad company shall erect and maintain fences on the sides of its road of the height and strength of division fences required by law, with gates or barways at farm crossings. Every such company shall also construct and maintain cattle guards at road crossings sufficient to prevent cattle and other animals from getting on the railroad.
Until such fences and guards are erected the company shall be liable for damages done by its trains to cattle or other animals straying on its railroad. Where such fences and guards have been duly erected and maintained the company shall not be liable for such damages unless negligently or willfully done.
N.J.S. § 48:12-46