No law of this state or resolution or ordinance of any county, township, or municipality relating to the restraint of domestic animals or to the fences of farmers or landowners, is applicable to railway tracks unless specifically so stated in such laws, resolutions, or ordinances.
SDCL 49-16A-111