Every person who, with design to disable himself from performing a legal duty, existing or anticipated, shall inflict upon himself an injury whereby he is so disabled and every person who shall so injure himself with intent to avail himself of such injury to excite sympathy or to obtain alms or some charitable relief shall be guilty of a felony.