Railway warns to remove encroachment