Section 24. Whoever keeps a house of ill fame which is resorted to for prostitution or lewdness shall be punished by imprisonment for not more than two years.