Section 295T. On complaint of any retail dealer the superior court shall have jurisdiction in equity to restrain and enjoin any act declared illegal by any provision of sections two hundred and ninety-five P to two hundred and ninety-five W, inclusive, and it shall be the duty of the several district attorneys, in their respective districts, to prosecute all violators of any provision of said sections.