You could give it an intelligence test.
That means you take the dog for a ride and drop it off several miles from home and see if it can find its way back.
Or you could just call the sheriff out there next time it is on your property. If somebody can't keep a dog on their property then they don't need it. Your getting ready to have a baby. You don't need a dog that can't behave coming around all the time.