Section 36D. Whoever, not being licensed as provided in sections thirty-six A and thirty-six B, engages in the sale, distribution or delivery, at wholesale, of drugs or medicines, or uses the words ''wholesale druggist'' or any other words of similar import in connection with his business to indicate the sale, distribution or delivery of such commodities, at wholesale, or whoever sells, distributes or delivers such commodities at retail, and holds himself out to be a wholesale druggist by using the words, ''wholesale druggist'' or words of similar import in connection with his business, or in advertising the same, shall be punished by a fine of not more than one thousand dollars or by imprisonment in a jail or house of correction for not less than thirty days nor more than one year, or both.