The word "bad" has several meanings, depending on its context. It can refer to something that is not good or satisfactory; it can also indicate a moral wrongness or wickedness, or describe someone who behaves in an unpleasant manner. In this case, the sentence means that the person was acting in an unpleasant and unwanted way towards others.