Xavia had already planned everything out.
She knew that the moment Gerald found out that she was in danger, he would definitely come running over to save her. Xavia had no doubts about it given how well she knew his personality in the past.
Once he arrived, she would begin crying and throwing tantrums before threatening to commit suicide. After seeing that, he would definitely be saddened and try to console her!
After that, she would finally have her chance to be together with Gerald again