baby grates crib with teeth

ch

How do I get my baby to stop grating the crib with her teeth like a cheese grater. She has pieces of paint all over her mouth