It depends on exactly what his bail terms were and what he really said, he does have a right to prep his own defense and talk to witnesses the same as Mueller does to prepare his generally (Barring any specific limits set by the judge) but apparently Mueller is upset because he used secure communications that Mueller's boyos couldn't read. But yeah, it has nothing to do with Trump either way, whether the Judge decides he was in the right or wrong.