A person who commits an act in the mistaken belief that it is lawful acts without guilt, provided he could not have avoided making the mistake. If he could have avoided it, the punishment may be reduced in accordance with the provisions of § 49(l).