Rich doesn’t get you out of things, at least not on its own. Being rich gets you good lawyers who tell you not to do things before you do them, and then work with you to find loopholes so you can do what you want, anyway. If you do get prosecuted, good lawyers might get you out of it, or at least work down to a sweet plea deal.
Trump has driven away every good lawyer in the country, almost all of the not so good ones, and is now scratching around for the handful that technically passed the bar exam. Major firms, even one’s run by partners who vote for him, refuse to do business with him. Why would they? He ignores their advice, causes headaches, and then refuses to pay.