This is a very bad idea. You could be exposed to a perjury charge if you are caught, and your credibility as a witness will be severely discredited. Your lawyer will do their best to persuade you not to lie on the stand, but they likely will withdraw their representation if you proceed. (However, they will not tell the judge why they are withdrawing their representation.)