According to Wikipedia, this is a grammatically correct sentence that uses three different meanings of the word “buffalo”. It refers to the city of Buffalo as a proper noun, the verb buffalo meaning “to bully, harass, or intimidate”, and the animal itself. It’s highly confusing and I still don’t get it.