Never trespass or cross tracks illegally. It's illegal and dangerous to walk on or near tracks unless you're using a designated crossing. It's also illegal and extremely dangerous to drive around closed crossing gates or to ignore flashing warning lights.