Fundamentalist religious societies often use the same line of reasoning: women are not allowed to walk around unveiled or allowed to do pretty much anything because they are powerless and ostensibly have to be protected from society as much as society needs to be protected from the unrest their public presence causes. The deeper "logic" here is that women are held responsible for the abuse they are provoking just by being around, and also that they're somehow not mature enough to handle themselves.
This is exactly the same reasoning as banning, say, black people on the grounds that they might cause unrest among KKK attendees who might be present.
In one line: this is the most insultingly stupid thing ever and it's happening not only in Texas but all over the world. I just wish it didn't happen in so-called free societies at all.