Wiktionary
be cruel to be kind
vb. To do or say something to another person which you believe to be for their own good, and will be helpful for them in the future, although it might be painful or hurtful at this moment.