Nothing is an offence merely by reason of its being done with the knowledge that it is likely to cause harm if it is done without any criminal intention to cause harm, and in good faith for the purpose of preventing or avoiding other harm to a person or property.