It could be part of a much larger plot within the fanfiction. For example, Snape might be under orders from some other powerful character to keep Harry in check. Or perhaps he has discovered some new information about Harry's connection to Voldemort that makes him take such drastic actions. In the context of the fanfiction, the author might be using this moment to build tension and drama between the two characters.
Maybe Snape suspects Harry of being involved in some sort of dangerous activity related to the Dark Arts. Pressing him to the wall could be a way to force Harry to come clean about his actions or any knowledge he might have. It could also be that Snape is acting out of his own insecurities and pent - up emotions towards Harry, which he has been suppressing for a long time.
One possible reason could be that Snape is trying to intimidate Harry. He has always had a rather tense relationship with Harry in the original story, and this could be an extreme form of showing his authority. Maybe he suspects Harry of something, like being involved in some mischief or having knowledge about a certain Dark Arts item or activity.
One possible reason could be to protect Harry. Snape might believe that by tying Harry to the bed, he can keep him in a safe place away from immediate danger. Maybe there's a threat in Hogwarts or outside, and Snape thinks this extreme measure is necessary to ensure Harry's safety.
One possible reason could be that Snape is still holding a grudge against James Potter, Harry's father. He might take out his long - standing anger on Harry. Another reason could be that Snape is trying to discipline Harry in his own strict way, but it ends up being too harsh and making Harry cry.
Maybe Snape has some sort of premonition or knowledge that Harry is going to be crucial in the fight against dark forces in the future. So, in order to ensure that future, he steps in to save Harry from whatever danger his parents' situation might put him in. He might also be trying to atone for past mistakes or grudges he held against Harry's father by protecting his son.
Harry might react with defiance. He has always been a brave character, so he could look Snape straight in the eye and not show any fear, even though he is in a vulnerable position.
One possible reason could be that Snape, despite his enmity with Sirius, has a sense of duty towards Hermione as a student at Hogwarts. He might not want to see any harm come to her, even if it means protecting her from Sirius. Another reason could be that Snape has his own complex motives and perhaps sees Hermione as an important asset to the wizarding world, so he steps in to keep her safe.
It could be a plot device used by the author of the fanfiction. The touch might be used to create tension or an emotional moment between Snape and Harry. It could signify a turning point in their relationship, whether it's the start of a more positive understanding or the heightening of an existing conflict. For example, the touch could make Harry feel uncomfortable and lead to a confrontation later, or it could make him realize that Snape has a more complex side than he initially thought.
One possible reason could be Snape's long - held grudges and resentments. He had a complex past with Harry's father, James Potter. Snape might see too much of James in Harry and be unable to separate the two in his mind, leading to his rejection.
One possible reason could be that fanfiction often takes creative liberties that may distort the complex character of Snape that J.K. Rowling created. Snape has a very intricate backstory and personality in the original series, and fanfiction might simplify or misinterpret it.
One possible reason could be Snape's long - standing dislike for James Potter, Harry's father. Since Draco is from a pure - blood family like Snape himself, and Snape has a certain affinity for the pure - blood traditions and values, he might choose Draco. Also, Draco was in Slytherin, Snape's own house at Hogwarts, and he might have felt a stronger sense of loyalty to his house and its students.