The only things that will work 100% are a big dog who can roam (they learn how far dogs can reach if fenced or leashed), a really tall fence (10' or more), or lead pesticide.
I personally doubt the effectiveness of any electronic device, I'm sure it'll work temporarily then they get used to it and don't care.