Alert gangman averts possible train accident