The provisions of §§ 56-436 through 56-438 shall not apply to any railroad company which has its line of road enclosed with fences and cattle guards, as required by law. History Code 1919, § 3997.