I think the problem being the way Dubai is sold as some lavish holiday place. That lots of people have no idea of the culture and laws there.
Yes. As said, my immediate instinct is to blame the woman for being so stupid, but being ignorant is not a crime, it is not even a moral failing (well, unless you vote for Trump, then maybe), so it is really unfair to blame her.
Those who market Dubai as lavish holiday place should be forced to put a warning on it, similar to the warnings on cigarette packages - "Contains loads of misogyny. May cause PTSD, imprisonment and death"
And perhaps the picture of an imprisoned woman instead of the photo of a fancy hotel pool.