The so-called shepherd is a person who raises sheep. There is a greedy shepherd in Aesop's Fables, which means: warn us not to be greedy, let alone forget the great righteousness for the benefit.
Because the shepherd believed the wolf, he turned the sheep into the wolf's food. This story tells us that children should not be deceived by the rhetoric and petty profits of bad people, but should have their own opinions and positions so that they will not be deceived.