When a public offense is committed on the boundary of two or more counties, or within five hundred (500) yards thereof, the jurisdiction is in either county.
R.L.1910, § 5613.