THE PENAL CODE, 1860 (ACT NO. XLV OF 1860).
CHAPTER IV- GENERAL EXCEPTIONS
81. Nothing is an offence merely by reason of its being done with the knowledge that it is likely to cause harm, if it be done without any criminal intention to cause harm, and in good faith for the purpose of preventing or avoiding other harm to person or property.
Mental element
Intent - national proceedings
Knowledge - national proceedings
EDIT.