It is unlawful for any person having one or more persons in his or her service as employees to discharge or threaten to discharge any employee in his or her service for voting or not voting in any election, state, county, or municipal, for any candidate or measure submitted to a vote of the people. Any person who violates the provisions of this section is guilty of a felony of the third degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.