It is lawful for any person to use such force as he believes on reasonable grounds to be necessary in order to prevent the commission of a crime, the commission of which would be likely to cause immediate and serious injury to any person or property, or in order to prevent any act being done which he believes on reasonable grounds would, if done, amount to any such crime.