(5)Nothing contained in sub-section (1) shall render any person liable to any punishment provided in that sub-section, if in the opinion of the Court, the offence was committed without his knowledge of that he exercised all due diligence to prevent the commission of such offence.