Treason isn’t part of a president official duties. Therefore the presidential immunity doesn’t apply. Gee that’s too bad.