839.18 Penalty for officer assuming to act before qualification.—Whoever being elected, or appointed, to any office assumes to perform any of the duties thereof before qualification, according to law, shall be guilty of a misdemeanor of the second degree, punishable as provided in s. 775.082 or s. 775.083.