It's retarded in my opinion, but on the other hand it's unlikely that you could find two witnesses to testify against you.
That's the point. In THIS case you don't need 2 witnesses. If they find out you stayed the night with someone knowingly...you're done.