Minn. Stat. § 192A.385
No person may be tried or punished for any offense provided for in sections 192A.39 to 192A.605 unless it was committed while that person was in a duty status.