The best thing to do when dealing with trespassing neighbours is to talk to them about the issue. If that does not stop, you can use a 'No Trespassing' sign in your yard to further restrict them from entering your property. Also, you can build a sturdy barrier or get a guard dog to watch over your property.