Let's not give Trump any credit at all for walking the tight-rope between illegality and not, as it's been legal system weakness more than much else which has saved him from jail.
There is one somewhere suggesting how Trump has stayed out of jail, but couldn't find it, so settled for
You're right. There is one on the board, i think, that suggests Trump has testified under oath before and gotten away with it, from his casino days, i think.