Baby nails

My baby has hangnails constantly 😩

On his toes and fingers...

How can I prevent them? Do I cut or pull them?