When an offense is committed on the boundary between 2 counties or within 100 rods thereof; or a mortal wound or other violence or injury is inflicted or poison is administered in one county, whereby death ensues in another, the offense may be alleged in the complaint or indictment as committed, and may be tried in either.