Any public official who, with the intention of securing a gain for themselves or another, levies taxes, fees or other charges which are not due or which exceed the statutory rates shall be liable to a custodial sentence not exceeding three years or to a monetary penalty.