I can tell you that bear spray works. It also lingers. Spraying it around perimeter the property after lock up may help. With a 5' set back the neighbors may be a bit peeved though. However, if enough neighbors use the stuff the bears will avoid the place.
I use electric fencing all the time. If there are any restrictions it's a municipality thing.
I had a coyote issue awhile back. As crazy as it sounds "fixing" a coyote like a stray dog isn't allowed. You kill them but trimming the family tree isn't an option. I assume that it's same with bears.
At risk of making light of a serious subject, you could throw your bear a soccer ball.
This black bear is having a ball!
abc7news.com