Whoever contravenes the provisions of section 24 or 25 shall, on conviction, be punished with fine which may extend to twenty-five thousand rupees.