The construction and maintenance of livestock guards over or across county or secondary highways so constructed that automobiles and trucks may pass over the same and which will prevent the passage of livestock across such livestock guards is hereby authorized. The construction and maintenance of such livestock guards shall not be considered as creating a barrier or obstruction on such highways.
SDCL 31-25-4