I am going to repeat my warning. Think twice about travelling and using an SP at a foreign destination where it is illegal. You are NOT in the same boat as the locals for many reasons.
First, you don't have the same rights as the locals. You can be denied re-entry to the country over what might just be a slap on the wrist for locals.
Second, you don't have the contacts and connections that the locals do, meaning that you probably don't know how to find the best lawyer.
Third, as a foreigner, the police may consider you a flight risk, and decide to hold you where they might decide to releaes a local with a ticket. A prosecutor may similarly argue that you ought to be denied bail for the same reason.
Fourth, your legal costs are going to be MUCH higher if you have to fight a charge from remote. Consider that you will have to fly back every time there's a court appearance (now you know why the prosecutor and the police think you are a "flight risk", you may just be an "unable to pay for flight" risk). Where a local might be able to explain away an afternoon off to work and family, how are you going to explain a two day trip for an appearance that may just get knocked off the docket by a court delay? In other words a slap on the wrist charge that normally just results in a "diversion to john school" and no criminal record for a local is still a REALLY BIG DEAL for you.
Fifth, you DON'T KNOW what sorts of activities are safe, and what sorts of activities are likely to result in arrest. The locals know their community and what passes. You don't know because you're not from there. For example, the locals know which hotels look the other way, and which hotels call the police when they seen an escort. The locals know whether the media has run a story on some sector of the industry. The locals know which establishments are thought to bribe the police. You don't.
Now if you were flying from a destination where it's already illegal or pretty much the same like the poster above seems to say then I guess some of this doesn't apply to you--but even if you're American just from out of state, a lot of the above still applies to you.
The police in California are known to take prostitution seriously and periodically make arrest, run stings, and so on. Don't be an idiot.