ยง  52.  Fences,  farm  crossings  and  cattle-guards.  Every  railroad
  corporation, and any lessee or other person in possession of  its  road,
  shall,  before  the lines of its road are opened for use, and so soon as
  it has acquired the right of way for its roadway, erect  and  thereafter
  maintain  fences  on  the  sides  of  its  road  of  height and strength
  sufficient to prevent cattle, horses, sheep and hogs from going upon its
  road from the adjacent lands, with  farm  crossings  and  openings  with
  gates  therein  at  such farm crossings whenever and wherever reasonably
  necessary for the use of the  owners  and  occupants  of  the  adjoining
  lands,  and  shall  construct  where  not  already  done,  and hereafter
  maintain, cattle-guards at all road crossings, suitable  and  sufficient
  to  prevent cattle, horses, sheep and hogs from going upon its railroad.
  So long as such fences and cattle-guards are not made,  or  are  not  in
  good  repair,  the corporation, its lessee or other person in possession
  of its road, shall be liable for all damages done  by  their  agents  or
  engines  or  cars to any domestic animals thereon. When made and in good
  repair,  they  shall  not  be  liable  for  any  such  damages,   unless
  negligently  or  wilfully  done.  A  sufficient  post  and wire fence of
  requisite height shall be deemed a lawful fence within the provisions of
  this section, but barbed wire shall not be used in its construction.
No railroad need be fenced, when  not  necessary  to  prevent  horses,
  cattle,  sheep  and  hogs  from  going upon its track from the adjoining
  lands. Every adjoining land owner, who, or whose grantor,  has  received
  compensation  for fencing the line of land taken for a railroad, and has
  agreed to build and maintain a lawful fence along such line, shall build
  and maintain such fence. If such owner, his heir  or  assign  shall  not
  build such fence, or if built, shall neglect to maintain the same during
  the  period  of  thirty  days after he has been notified so to do by the
  railroad  corporation,  such  corporation  shall  thereafter  build  and
  maintain  such  fence, and may recover of the person neglecting to build
  and maintain it the expense thereof. And when such railroad shall  cross
  timbered  or  forest  lands,  the  company  shall construct and maintain
  suitable and sufficient  crossings,  whenever  and  wherever  reasonably
  necessary  to  enable  the  respective owners of said lands to transport
  logs, timber and lumber for manufacture or sale, or for banking  on  any
  stream, to be floated or driven down the same. In case of any neglect or
  dispute   the  supreme  court  may  by  mandamus  or  other  appropriate
  proceedings, compel the same, and also fix the point or location of  any
  such crossing.
As used in this section, the term "farm crossings" shall mean at-grade
  rail  crossings  that  are  utilized  primarily  as  access  to and from
  adjoining property which is actively used for  farming  or  agricultural
  purposes by the owner or by the tenant of such property.
Structure New York Laws
Article 3 - Construction, Operation and Management
50 - Liability of Corporation to Employees of Contractor.
52 - Fences, Farm Crossings and Cattle-Guards.
52-A - Fences Along Road Operated by Electric Third Rail.
52-B - Fences Along Right of Way.
52-C - Fences in Queens County.
52-E - Penalties for Littering.
53 - Sign Boards, Flagmen and Gates at Crossings.
53-B - Ringing Bells and Blowing Whistles at Crossings.
53-C - Obstructing Farm and Highway Crossings.
53-D - Unlawful Propulsion of a Missile at Railroad Trains.
53-E - Unlawful Interference With a Railroad Train.
54 - Notice of Starting Trains; No Preferences.
55 - Accommodation of Connecting Roads.
56 - Locomotives Must Stop at Grade Crossings.
58 - Excess Charge When Fare Paid on Cars.
59 - Penalty for Excessive Fare.
60 - Issue and Use of Mileage Books.
61 - Passenger Refusing to Pay Fare May Be Ejected.
61-A - Sounding of Certain Signals on Railroad Cars by Unauthorized Persons.
62 - Sleeping and Parlor Cars.
63 - Persons Employed as Drivers, Conductors, Motormen or Gripmen.
65 - Conductors and Employees Must Wear Badges.
67 - Penalties for Injuries to Baggage.
68 - Unclaimed Freight and Baggage.
69 - Minimum Standards for Track Inspection and Maintenance.
70 - Rights and Liabilities as Common Carriers.
71-A - Reflective Whistle Signs.
72 - Inspection of Locomotives.
73 - Inspectors of Locomotives.
74 - Care of Steam Locomotives; Steam and Water Cocks; Penalty.
75 - Commissioner of Transportation May Approve Other Safeguards.
76 - Use of Stoves or Furnaces Prohibited; Exceptions.
76-A - Motor Cars and Equipment.
76-B - Equipment Required on Motor Vehicles Transporting Railroad Employees; Penalty.
77-A - First-Aid Equipment on Locomotives.
77-B - Speedometers on Certain Locomotives.
78 - Coal Jimmies and Caboose Cars.
78-A - Electric or Battery-Powered Markers.
81 - Violation of Sections Seventy-Seven, Seventy-Seven-C, Seventy-Eight, Seventy-Nine, and Eighty.
82 - Canada Thistles to Be Cut.
83 - Riding on Platform; Walking Along Track.
83-B - Trespass Upon Railroad Premises.
84 - Corporations May Establish Ferries.
85 - Certain Railroads May Cease Operation in Winter.
86 - Certain Railroads Need Not Be Operated Beyond June, July, August and September.
88 - When Railroads May Designate Police Officers.
89 - New Railroads Across Streets.
90 - New Streets Across Railroads.
91 - Alteration or Rehabilitation of Existing Crossing.
92 - Acquisition of Land, Right or Easement in Crossing.
93 - Repair of Bridges and Subways at Crossings.
93-A - Maintenance and Removal of Highway-Railroad Crossing at Grade.
93-B - Maintenance and Removal of Highway-Railroad Separation Structures.
94 - Performance of Work; Division of Expenses; Accounting; Claims for Damages; Valuation.
95 - Proceedings by Commissioner of Transportation for Alteration of Existing Crossings.
96 - Proceedings to Enforce Orders of Commissioner of Transportation.
97 - Intercity Rail Passenger Service.
98 - Intersection of Railroads.
99 - Application of Foregoing Section.
100 - Temporary Leave Granted by Court to a Street Surface Railroad; Bond.
101 - Consent of Commissioner of Transportation in Certain Cases.
104 - Compliance With Orders of Commissioner of Transportation.
108 - Approval of Appliances in Cities Having a Population of One Million Inhabitants or Over.