Sec. 2. If a complaint is made in writing and on oath to the district court or a municipal court that a person has threatened to commit an offense against the person or property of another, the judge shall examine on oath the complainant and any witnesses who may be produced.