"Bad associations spoil usefull habits"

1 Corinthians 15:33
Do not be lead astray; bad companionships corrupts good habits.
Be righteously awake and do not sin; for some have ignorance of God; I speak to you for shame.

But are all people who do not worship Jehovah bad association?
What if they have some likable, even admirable, qualities?
Then, too, what of a person who is a fellow believer yet is setting a poor spiritual example?

What is behind the attraction?