Any district judge who is present when any offense accompanied with violence is committed, may, without any other proof, order the offender to be arrested, and compel the offender to give security in the manner above directed, to refrain from the exercise of any illegal force.
HRS § 804-37