Unlike his video game counterpart, he wasn't exactly tricked into thinking that Sonic is the bad guy. He had a grudge against Sonic from the beginning, and had the same ideologies as the rest of his tribe.
If the rest of the Echidna Tribe are considered villains, then shouldn't Knuckles himself considered one too?