Section 24
SEC. 24. Any justice of the peace or register of deeds who shall demand or accept directly or indirectly, any gift, fee, commission or other form of compensation in connection with the service required to be performed by the said justice of the peace as provided in section twenty-two and by the said registry official as provided in section twenty-three of this Act, shall be punished by a fine not exceeding one thousand pesos or by imprisonment for not more than one year, or both, at the discretion of the court.