Unfortunately, it's hard to get mad at anyone but the rapist in this situation. The judges have to enforce the laws as they are. And this sort of thing (pretending to be someone's boyfriend/husband) isn't the sort of thing that comes up often, so legislators are unlikely to even know about the law until this case came up. When it happened in Idaho, the law was amended to prevent this sort of thing. One hopes that it happens in California as well. And that people bring it to the attention of other states, so that any similar laws can be amended before they become a problem.