Every person while within this state is subject to its jurisdiction and entitled to its protection.
N.D.C.C. § 54-01-18