It is lawful for a sheriff or justice to use or order to be used such force as he believes on reasonable grounds to be necessary in order to suppress a riot, not being disproportioned to the danger which he believes on reasonable grounds is to be apprehended from the continuance of the riot.