It shall be unlawful for any person traveling upon a road provided for in section 39-1814 to leave the gates open when he shall have passed through the same. Any person who violates the provisions of this section shall be guilty of a Class III misdemeanor.