An owner of land through which a railroad is constructed, and upon which there is a culvert, waterway, or opening through the embankment of the railroad of sufficient height for such purpose, may use such culvert, waterway, or opening, as a stock or cattle way under the track of the railroad so as to permit stock to pass and repass. The landowner shall build and maintain all necessary fences on both sides of the opening, and shall not, by use or otherwise, permit the foundations of structures about such opening to be injured or interfered with.