So what does it mean “do not cast your pearls before swine”? Who are the swine and what is the pearl?

I have my understanding of this but want to see what I have missed. ❤️