Brats

We have some neighbors little boys that love to play with my daughter but it seems here lately that their misbehavior & brattiness seems to be rubbing off on her. She usually behaves well (she's almost 5) & listens pretty dang well but here lately she's been acting just like them. It's awful! They fight about everything, are extremely whiny & do not listen to what they're told, like at all, they encourage her to do things she knows she's not allowed to do like play in the parking lot or walk around the side of the apartments where we can't see her. They're mean & like to play cops & bad guys by holding her hands behind her back & the shoving her to the ground & now my daughter has seemed to have picked up these bad habits. What would you do in this situation? Would you talk to their parents or would you just not allow them to play together anymore?