Diablos literally translates to "devils", but in this song, it's used as a dramatic intensifier in questions, just like saying "the hell" or "on earth" in English.
Becky G repeatedly asks, "¿Cómo diablos...?" (How the hell...?) and "¿Por qué diablos...?" (Why the hell...?), demanding answers about why her relationship ended. Learning this word is a great way to understand how Spanish speakers add frustration and emphasis to their questions in everyday conversation.
Becky G opens with a dramatic diagnosis, saying her lovesickness lasts for life and neither pills nor alcohol can close the wound.
What drives her crazy is the unfairness, so the chorus asks how the hell he managed to be happy while she is still sad.
That phrase, cómo diablos, works just like how on earth or how the hell in English.
She then hypes herself up as a hundred out of ten, calls him good at cheating, and says they might hook up again but he lost any chance at being her partner.