Railroad right of ways and access to them would depend on if the railroad owns the land or has an easement, i would imagine most rails are owned by the company and the land would be in private ownership.
RR right of ways are owned by the rail companies.........most road crossings are marked with no trespassing signs.....signage or not, it is illegal to trespass onto RR property.