means that
it is unwise to offer something valuable to people who are unwilling or unable to appreciate it.
also
Do not throw pearls to swine
The saying “Don’t cast pearls before swine” can be used when it is useless to offer something valuable to someone who doesn’t value it, who cannot appreciate it.