Woman barely avoids getting hit by a train