It is illegal to be on the railroad tracks. Hot springs goers do it all the time so it shouldn't be an issue but keep a low profile and stay off the tracks. As Jeff notes in the guidebook, it's probably best to hike along the river instead of along the tracks.
This information is a public crowdsourcing effort between the Access Fund,
and Mountain Project. You should confirm closures, restrictions, and/or related dates.