A man is moving a gate that impedes the progress of an oncoming train .