If your children were dying, wouldn't you do anything to save them?
Chrysalis would, which is made clear in this tale.
Her love is the only thing that keeps her children alive, but her love has become twisted as she sees the young ones suffering.
All she wanted was for her subjects, her children, to be happy, and she would do anything to make that happen, even teaming up with a dangerous creature...