What does ‘knock’ mean?

( v ) Criticize, insult. Hey, don’t knock my new hat!