What is the meaning of [when you go to dance, take heed whom you take by the hand]

Beware of getting involved with dishonest or unscrupulous people.