You've been misguided by that lawyer, as everything is court of law needs to be prived, by way of evidence and noallegation becomes the truth only on filling the case, but has to be oroved by way of irrefutable evidence and by way of statements made by the parties during examination.
If she won't be able to prove her allegations in court, you'll be acquitted.
In the case of Ashok Chaturvedi and Ors. v. Shitul H Chanchani and Anr. it was held that allowing the criminal proceeding to continue even when the allegation of the complaint petition do not make out any offence would be tantamount to abuse of the process of the court
After acquittal, you can file a suit for damages against wife claiming losses you had incurred due to her false cases.
If your wife has made false statements in court, and you have evidence for the same, then you can file a complaint for committing the offence of perjury.
For further discussion, feel free to contact.
Regards.