Lewis wasn't told he could pass Max so I really doubt he was trying to avoid DRS. In his mind, Max could've been slowing for a crash ahead that lewis was unaware of. Most of the blame goes to Max, he was the one who aggressively brake checked Hamilton.
It's funny how you mention that, "driving on the edge", makes it even funnier when Max managed to make the corner every time bar when Lewis was about to overtake. He does it on purpose to keep the position, it's clearly not accidental as he's done it every time in the last few races. And which lap are you talking about where Hamilton missed the corner, lap 37? He missed it due to avoiding contact with Max, if he turned in to make the corner, he would've hit max's car. You can literally see his car stop turning for a split second.