A person is known by the company he or she keeps. You will always attract the kind of person that you resonate with. This depends on your personality and views about different aspects of life and society.
To grow and prosper, it is essential that you keep a good company because that motivates you further to do well and do good for others too. A good circle of people becomes your support center when you truly need someone to have your back.
This circle need not be people who are highly successful, but it needs to be people who are supportive of you and understand you properly. Once you know yourself well, it is easier to find the company that will help you grow even further as a person.
If you see that you no longer resonate with the people around you, then be courageous to step out because the bad company can be the cause of undoing for you. You do not really have to accuse anyone or get in their bad books when you change your circle. But be firm with the decision you make and always be sure of the company you want to keep.
It is true that you rather be alone than be in a bad company because then there is no effect of negative influence with you.
To ensure that you are on the right path and your thoughts and actions are in the right direction, go into self-retrospection modes so that you actually get in touch with what you are doing. It is the best way to grow in life and cross-check along the way.