What do you think “immunity” means in this context?
You don’t get immunity for legal acts. The supreme court didn’t just rule that legal acts committed by a president cannot be prosecuted. That would be fucking stupid. Legal acts done by anyone can’t be prosecuted ever. That’s what it means to be “legal”. Immunity applies to illegal acts.