Are you serious?! It's dangerous to the bodies and hearts of those involved in promiscuous behavior.
You have determined that is dangerous to other people for those other people to do what those other people want to do. Having thus determined that these people are a danger to themselves, you want to make them stop.
The Taliban had determined that women appearing outside the house without male company was dangerous for those women. Having determined that these women were a danger to themselves, the acted to put a stop to it.