I do honestly believe that male and females can be friends (excluding partners). But boundaries need to be set first otherwise it can be open for interpretation.
This guy was setting you up. You talked about a relationship not close to home and he figured like a few I have met recently – that if you’re alone you’re desperate. He was already telling you his intentions in the conversation you were having with him. The moment he started talking about if he was treating you right was already the signal. I almost can imagine you now saying to your “friend” (excuse this term,) that you miss him. If you did not set the boundary then he figured that he was allowed the next step. Its not your fault but this guys a jerk and obviously not the first time he’s done this.
I make a point not to mix my professional life with personal life and I mainly have male friends. I was brought up with guys and had 3 boys of my own – they are great to be with, BUT I do need to be mindful at all times that I do need to remind them of the boundaries. No harm in trying but this guy went too far.