Itachi followed the order of someone evil, which is Danzo. So by following Danzo evil order, that makes Itachi evil, even if his intention was good. Not every Uchiha were evil.
Danzo is responsible for Kabuto turning evil, Kabuto mum dying and Nagato turning evil. I wouldn't be surprised if...