To prevent any person from avoiding or delaying that person's trial, it shall not be lawful to remove any prisoner on habeas corpus under this chapter out of the county in which the prisoner is confined, within fifteen days next preceding the term of the court at which such person ought to be tried, unless it is to convey the prisoner into the county where the offense with which the prisoner stands charged properly is cognizable.
N.D.C.C. § 32-22-35