A judge decides the law, in a way of a command from above.
An advisor speaks to the listener as an equal, giving good advice in a way that the listener understands that it is to his benefit.
The Rebbe King Moshiach Shlita is both the judge and advisor of the generation.
(See talk of the Lubavitcher Rebbe King Moshiach Shlita, Shoftim 5751 (1991))