Whoever in the presence of any of the judges aforesaid or of any court of record makes an affray; threatens to kill or beat another or to commit any violence against his person or property; or contends with hot and angry words to the disturbance of the peace, may be ordered, without process or other proof, to recognize to keep the peace and be of good behavior for a term not exceeding 3 months, and may be otherwise dealt with as is provided in sections 281 to 290.