(1) Any class of welfare assistance to which the applicant or recipient is not entitled; or
(2) Any class of welfare assistance in excess of that to which the applicant or recipient is justly entitled; shall upon conviction be punished as follows:
(a) If the aggregate value of all funds or other benefits obtained or attempted to be obtained shall be five hundred dollars or less, the person so convicted shall be guilty of a misdemeanor and shall be fined not more than one thousand dollars or confined in jail not exceeding one year; or
(b) If the aggregate value of all funds or other benefits obtained or attempted to be obtained shall exceed five hundred dollars, the person so convicted shall be guilty of a felony and shall be fined not more than five thousand dollars or confined in the penitentiary not less than one year nor more than five years.