The Nigerian Railway Corporation has warned members of the public against encroaching on rail tracks.