Forest Minister K Ponmudi has landed in legal trouble over controversial remarks linking religion and sex work.