What does the saying mocking is catching mean?

What does the saying mocking is catching mean?

Be careful of making fun of others

Proverb. mocking is catching. Be careful of making fun of others, lest others make fun of you.