its not very surprising coming from you, but if you chose to read what the OP said and considered his interpretation of the situation rather than blabbing on about what you personally are entitled to, you'd easily be able to figure it out yourself. So here I will do you a favour since you are seemingly struggling to use the internet
From the original post, "Needless to say, a fun experience became a stressfull one, since we had to wait for him to leave before we could leave ourselves as we didnt want any kind of additional harrasment from him."
Fairly blatantly implying that our member here Huz felt that if he were to walk past the individual a confrontation could occur.
"Which Law?"
https://lmgtfy.app/?q=harassment+ontario+law
you will then find
the criminal code of canada, specifically the section on criminal harrassment! Heres the hyper link for you https://laws-lois.justice.gc.ca/eng/acts/c-46/section-264.html
Criminal harassment
264 (1) No person shall, without lawful authority and knowing that another person is harassed or recklessly as to whether the other person is harassed, engage in conduct referred to in subsection (2) that causes that other person reasonably, in all the circumstances, to fear for their safety or the safety of anyone known to them.
(2) The conduct mentioned in subsection (1) consists of
(b) repeatedly communicating with, either directly or indirectly, the other person or anyone known to them;