Birds of the same feather flock together and more funny though birds of the same flock feather together.
Groups with the same vision and purpose may gather together and there is no way a person with a different agenda can join their group.
Evil spirits have different groups of an unclean demon:
The spirit of divination.
Acts 16:16 And it came to pass, as we went to prayer, a certain damsel possessed with a spirit of divination met us, which brought her masters much gain by soothsaying:
The spirit of slumber.
Rom 11:7 What then? Israel hath not obtained that which he seeketh for; but the election hath obtained it, and the rest were blinded.
Rom 11:8 (According as it is written, God hath given them the spirit of slumber, eyes that they should not see, and ears that they should not hear;) unto this day.
The spirit of fear.
2 Tim 1:7 For God hath not given us the spirit of fear; but of power, and of love, and of a sound mind.
The spirit of the world.
1 Cor 2:12 Now we have received, not the spirit of the world, but the spirit which is of God; that we might know the things that are freely given to us of God.
For they are the spirits of devils, working miracles, which go forth unto the earth and of the whole world. They can go in altogether in a man by the hundreds or thousands.
Lk 8:30 And Jesus asked him, saying, What is thy name? And he said, Legion: because many devils were entered into him.
Mk 16:9 Now when Jesus was risen early the first day of the week, he appeared first to Mary Magdalene, out of whom he had cast seven devils.
Devils go in by the groups where they can find rest. However, a devil who loves and enjoy illicit relationship with women will never group with devils who love gambling. Though he can possibly join them but will never find comfort spending or wasting time in gambling.
Mt 12:43 When the unclean spirit is gone out of a man, he walketh through dry places, seeking rest, and findeth none.
Mt 12:44 Then he saith, I will return into my house from whence I came out; and when he is come, he findeth it empty, swept, and garnished.
Mt 12:45 Then goeth he, and taketh with himself seven other spirits more wicked than himself, and they enter in and dwell there: and the last state of that man is worse than the first. Even so shall it be also unto this wicked generation.
Knowing this, Let us humble ourselves in the sight of the Lord, and he shall lift us up.
Jas 4:7 Submit yourselves therefore to God. Resist the devil, and he will flee from you.
This way, though outnumbered, we can’t be outfought.
Rom 8:31 What shall we then say to these things? If God be for us, who can be against us?