They can install security cameras around their houses. This can act as a deterrent and also provide evidence if something does happen.
People should always be aware of their surroundings. If they notice someone following them repeatedly, they should go to a public place like a store or a police station. Also, they need to keep their personal information private on social media to avoid stalkers finding out too much about them.
One important thing is to trust your instincts. If you feel like someone is acting strangely around you, like constantly staring or getting too close, take action immediately. You can also tell your friends and family about your concerns so they can be on the lookout. In some cases, getting a restraining order might be necessary if the stalking persists.