Texas has tightened its rail crossing laws after ranking second in the nation in 2018 for rail-related pedestrian fatalities and injuries.

House Bill 2775 prohibits pedestrians at rail crossings from passing in front of, under, between or through rail cars of moving and stationary trains. The bill was signed into law during this most recent legislative session, and it went into effect Sept. 1.

Of the 1,050 pedestrian fatalities and injuries in the nation in 2018, Texas accounted for 82, according to Federal Railroad Administration statistics. That is broken down into 36 fatalities and 46 injuries.

The state had no previous rail-crossing laws for pedestrians, according to the Texas Department of Transportation.