You can say “Ow!” and gently take baby away. They can understand tone of voice at this age. My baby also giggles when I say “No!” but she’s slowly learning
I will bring my baby away from the boobs and tell her it isn’t nice. Mommy’s nipple is for milk and not a pacifier. After few rounds she seemed to get it