what’s the legality or the ethics of complimenting people in a public space?

hmmm,,, I guess the whole time street photography and street photography ethics, rings true here?