Don't steal beer. Don't drink stolen beer. Don't drink stolen beer on the railroad tracks and throw rocks at passing Amtrak trains. Not good lifestyle choices.
But even more important advice: If you're an engineer on said train, don't stop the train, get off, and confront the perpetrators. Because these offenders may well be gang members who will beat you within an inch of your life. As well as the other Amtrak employees on the train who come to your aid.