A website can block Xyz user agent, put Xyz in robots.txt, or even put "No using Xyz!" in a popup and you cannot be prosecuted for using Xyz. It might be hard for you to evade their requirements, but it's not illegal.
Whether or not it's wrong is a matter of opinion. Yours differs from mine, that's fine.