When an act charged as a public offense is within the jurisdiction of another state, country, or territory as well as in this state, a conviction or acquittal thereof in the former is a bar to a prosecution or indictment therefor in this state.
N.D.C.C. § 29-03-13