It means she is either TOO old, or TOO young. "On the wrong side" means her age is undesirable, unwanted, not good. If she wanted to have a baby, you could say she is "on the wrong side of 40", because after 40, complications are more likely. If she wanted to be a model, you could also say she is "on the wrong side of 40", because she is no longer young and probably not as pretty or fit as a younger person. It's also possible she's too young for something, like being a President maybe, because most candidates for presidency are much older, so she would also be "on the wrong side of 40".