8. Seducing or soliciting for purpose of prostitution

(a) by words, gestures, wilful exposure of her person (whether by sitting by a window or on the balcony of a building or house or in any other way), or otherwise tempts or endeavours to tempt or attract or endeavours to attract the attention of, any person for the purpose of prostitution; or
(b) solicits or molests any person, or loiters or acts in such manner as to cause obstruction or annoyance to persons residing nearby or passing by such public place or to offend against public decency, for the purpose of prostitution, shall be punishable on first conviction with imprisonment for a term which may extend to six months, or with fine which may extend to five hundred rupees, or with both, and in the event of a second or subsequent conviction, with imprisonment for a term which may extend to one year, and also with fine which may extend to five hundred rupees: