It's not the prostitute who has the problem with living off immoral earning. She does not get prosecuted. It's the person who gets any of the money, i.e. the brothel owner, the landlord of her flat or room, the pimp etc. The prostitute gets prosecuted for soliciting for prostitution in a public place.
If the police can prove (and they do when they bother to) that a massage parlour is being used for paid sex, the owner gets done.
. Wikipedia:-
In England and Wales:
• it is illegal to pay for sexual services “of a prostitute subjected to force”, which is a strict liability offense (since spring 2010, under the Policing and Crime Act 2009)
• for a "prostitute" to loiter or conduct solicitation in a street or public place is illegal.
• it is also illegal for a potential client to solicit in a public place, or solicit from a motor vehicle ("kerb crawling").
• keeping a brothel is illegal (It is an offence for a person to keep, or to manage, or act or assist in the management of, a brothel to which people resort for practices involving prostitution [5]); a brothel is a premises where two or more prostitutes work.
• controlling prostitution for gain is an offence (pimping)
• a prostitute is defined by the Sexual Offences Act 2003 as a someone who has offered or provided sexual services to another person in return for any financial arrangement on at least one occasion. This definition replaces the previous definition of a common prostitute.
• working as a prostitute in private is legal, as is working as an outcall escort.
• child prostitution is specifically illegal for the person paying (where child is defined as below 18).
(Under the law, a prostitute can be either male or female.)