Your conduct is perfectly legal.
This cast a heavy shadow on judicial impartiality.
An independent judiciary is one of the key pillars of a functional democracy.