A bylaw is a pretty minor threat and is all but unenforceable if the rifle is being used out of sight in a private dwelling. The probability of a law being obeyed is proportional to the probability of being caught.
I think my municipality bans use of any firearm in city limits. An air gun is a firearm but if under a prescribed velocity or energy is exempted from registration requirements, but its still a "firearm" under the FA. But I can get 10m diagonally in my attached garage and the probability of getting caught is near zero.