Distinguishing between wives and prostitutes

Since it was practically impossible to distinguish between wives and prostitutes, perhaps the only manageable way to solve the problem in those days was to prevent Asian women from emigrating at all.