It's nearly impossible to enforce in practice. I also doubt the school refers to it as a "ban". When a school bans something, there has to be a consequence for the violators.
Not sure it's so unenforceable. They have separate dorm buildings for men and women, and school conduct contracts have been enforced pretty readily before.