Why do guys do this...

Why do guys say a girl is crazy but then get back into a relationship with her? Asking for myself.

Doesn’t that make you look crazy too then or...