I know it has been mentioned and debated countless times that how despite being a bad guy in first 6 books how Snape turned out be a Hero and one of the most important plot character [spoilers..oops] but there are few things that I have always doubt about and am not able to understand at all.
As we all know, Snape loved Lily and Hated James because he was famous and eventually Lily chose him over Snape. Lily was married to James but even then, he kept on loving Lily and hating James for the rest of his life. But Harry was the only son of Lily! So what if his face resembles James, he was still Lily's (His love of life) only child whose eyes reminded him of her so much..then why he always tried to make his life miserable and get him out of Hogwarts?
Snape knew that Harry was in far greater danger outside Hogwarts rather inside. At Hogwarts all the teachers and security measures and above all Dumbledore is present to take care of any trouble that might threaten Harry's life.
I know some of you might say that he did it to make sure his cover was not blown so that all the sons and daughters of current/ex death eaters now studying in Slytherin house are always there to vouch for his cruelty and his efforts were fake or something..but truth is all those efforts were genuine and Snape would have been genuinely happy if Harry was suspended.
In book 2, when Ron and Harry accidentally hit the Whomping Willow, Snape did his best to get them thrown out of Hogwarts..too bad McGonagall didn't agree on that and neither did Dumbledore.
There are many repeated occurrences in books where Snape did his almighty best to get Harry suspended from Hogwarts and if not then make his life miserable.
Now in book 7 we came to know that he always had Harry's best interest in heart and did all those things to protect him - What I am not able to understand is - How you can protect someone by throwing him out of a school where everybody is there to protect/help him to some muggle family who don't even consider him a human?
How you are suppose to protect someone from one of the most feared and well equipped in dark arts wizard if you don't even let him finish his primary wizard education? If Harry was thrown out of Hogwarts, which Snape did his best to achieve, how was he suppose to understand the DADA and other advance magics to equip himself against Voldemort. Snape was literally trying to get Harry murdered by Voldemort or one of his death eaters all those years.