An offense committed on the boundary of two counties, or on the boundary of two cities, or on the boundary of a county and city, or within 300 yards thereof, may be alleged to have been committed, and may be prosecuted and punished, in either county, in either city, or the county or city, and any sheriff, deputy sheriff, or other police officer shall have jurisdiction to make arrests and preserve the peace for a like distance on either side of the boundary line between such counties, such cities, or such county and city.
Va. Code § 19.2-249