A person who, in the presence of a court magistrate, assaults or threatens to assault another, or to commit an offense against his person or property, may be ordered by the court or magistrate to give security, as in this chapter provided, and if he refuse so to do, may be committed.
Idaho Code § 19-215