An incident which could have led to a major tragedy was averted by the timely intervention of railway staff and…