Silver is a good guy. He does try to kill Sonic to protect his future, but consider his motivation—wouldn't you go to great lengths to save millions? In the story, Mephiles deceived him into believing Sonic was a villain, which is what set him against Sonic in the first place.