Any person, being about to violate the provisions of this chapter against dueling, may be arrested, and be required by any conservator of the peace to furnish bail to keep the peace and not violate the law against dueling for the period of two years. In default of such bail, or on giving bail, he shall be dealt with as provided in other cases of security to keep the peace, and all the provisions of the statute on that subject shall apply to bail as herein provided for.