Section 20. Whoever knowingly lets premises owned by him, or under his control, for the purposes of prostitution, assignation, lewdness, illegal gaming, or the illegal keeping or sale of alcoholic beverages, as defined in section one of chapter one hundred and thirty-eight, or the housing of a premises which is licensed under section twelve of said chapter one hundred and thirty-eight and on or in such premises alcoholic beverages are habitually served to persons who are intoxicated or alcoholic beverages are served to persons whom the operators of said premises know or have reason to know will operate a motor vehicle under the influence of intoxicating liquor in violation of subdivision (1) of section twenty-four of chapter ninety or the illegal keeping, sale or manufacture of controlled substances, as defined in section one of chapter ninety-four C, or knowingly permits such premises, while under his control, to be used for such purposes, or after due notice of any such use omits to take all reasonable measures to eject therefrom the persons occupying the same as soon as it can lawfully be done, shall be punished by a fine of not less than one hundred nor more than one thousand dollars or by imprisonment for not less than three months nor more than one year, or both.