Apparently, the oldest trick in the book is to bluntly ask "Are you a cop?" and if the concerned individual lies about it, it's entrapment and they're the ones breaking the law. But people don't do their due diligence.
In any case, it boggles the mind that filming pornography is legal while prostitution isn't. Oh, so it's okay when actors get paid to engage in what is literally prostitution and make money off the resulting material, but it's not legal when Joe Schmo who works at the power plant does it in private? Fuck outta here with your faggot legislation.