Any person who shall place a barbed wire fence across any traveled road, whether the same be or be not a public highway, without at the same time building an obstruction across said road outside of and not farther away from said fence than two rods, consisting of at least two boards or poles securely fastened to three upright posts, commits a petty offense and is liable to the person injured for all damages sustained.
SDCL 31-32-5