New York Laws
Article 29 - Special Stops Required
1176 - Obstructing Highway-Railroad Grade Crossings.

ยง 1176. Obstructing highway-railroad grade crossings. No person shall
drive a vehicle onto the railroad tracks at a highway-railroad grade
crossing unless there is sufficient undercarriage clearance to traverse
the crossing and adequate space on the opposite side of the crossing to
accommodate the vehicle he and/or she is driving, notwithstanding the
indication of any traffic control device which would permit him and/or
her to proceed.