What is the meaning of [it’s a foolish sheep that makes the wolf his confessor]

Do not confide in somebody unless you are certain that he or she can be trusted.