It might an extreme example, but realistically this is what happens when a photographer brings their client, props, and their camera onto railroad tracks to shoot. Railroad tracks are private property. They are not public property. It is illegal to shoot on railroad tracks.