I’ve correctly used ‘before’ in the sentence, haven’t I?

“I encourage you to cooperate with the entire city council in doing what is best for our city,” the newly elected city mayor said before the crowd.


I don't think so. You have to be careful using "before" in this sense, not only for the obvious reason that it is liable to be misunderstood to mean "earlier in time" but also because it is rather quaint when used to mean "in front of" and borders on archaic sometimes in that sense. This is one of those times, I'd say. It is OK to say the mayor spoke before the crowd, but when you zero in on one utterance, it gets awkward, and a simple "to" is more natural.