They (not the bible) say that women like "bad boys" for the purpose of reforming them. I don't know of any woman who willingly gets into a relationship so she can be a mother to a man that she sleeps with. In a word, ew!
What I know women will gravitate toward a man she knows will protect her. "Bad boys" usually come packing and are territorial. Of course, you do run into those that are really bad to the point of drive bys, sting operations needed, prison, and eventually if not ultimately death; which then comes with the woman grieving and regretting. If there are children, then you contend with rebellion, revenge, and repeating the cycle of being "bad".
The bible has a completely different slant on the appeal of a "bad boy". Proverbs 24:1-2 (AMP) states be not envious of evil men, nor desire to be with them; for their minds plot oppression and devise violence, and their lips talk of causing trouble and vexation. That scripture first addresses a man that sees a "bad boy" seemingly with everything including a trophy wife. Then it continues to tell the righteous man why. To the woman, the scripture tells there is no reformation she can do with a "bad boy". If she entangles herself with him in spite of the instruction not to, there will consequences to face for her and her children.
In a nutshell, when recognizing a "bad boy", pray that God break the fallow ground for good seed to be sown so he may see the error of his ways to turn around and do better. Eventually he grows and matures into righteousness. Then he is stable to receive and be the good investment that God intends for us to be.