Section 24F. Whoever, personally or by his agent, shall discharge an employee for the reason that such employee has furnished evidence in connection with a complaint under any provision of said sections twenty-four A to twenty-four J, inclusive, or that such employee has testified in a judicial proceeding under any such provision, shall be punished by a fine of not less than fifty nor more than two hundred dollars.