Just stay away from any angry employees, people, or cops, and leave if they tell you to, otherwise, you're probably fine.
Also if someone tries to escalate the fact you're taking pictures here's the rule that says you can take pictures it's 1050.9-c.
Since there are always tourists and railfans taking pictures I highly doubt you encounter anything, just use common sense if it looks sketchy stay away.