The general pattern for drug and prostitution stings is that the police will commit those secondary crimes, but intervene before allowing the primary crime to happen. In this case, they pretty much committed the primary crime at length before acting.