You must stop when the lights are flashing and barriers are lowering at a level crossing to avoid a collision with a train.