There are many things you can try including nail paints and things that taste bad but they only work sometimes.
They need to know that they need to stop and why, they need cofidence and a desire to stop. It is not easy sometimes but it needs to stop before 5. After it can cause dental/skeletal problems. You may even elect to have a habit breaker placed by your dentist to make them stop, it works.