If any person wilfully interrupt, molest or disturb any assembly of people met for the worship of God, he shall be guilty of a misdemeanor, and, upon conviction, shall be confined in jail not more than six months and fined not less than $25 nor more than $100. Any officer may put such offender under restraint during religious worship, and the court trying the case may require bond or recognizance of him for not more than one year to be of good behavior.