What is the meaning of [he who sups with the devil should have a long spoon]

Those who have dealings with wicked, dangerous, or dishonest people should remain on their guard and try not to become too intimately involved.