I think you need to teach your kid to say 'No' --- say to your kid that "you are a good girl, don't learn the way of speaking as your grandma, it's not nice"
I understand it's not easy, but just treat it as another way of teaching your girl about the bad side of the world.