If the dog is maturing and becoming territorial on your property, personally, I would give the dog a verbal and possibly a physical correction, Knock that off!!!
A quick, firm correction and quickly moving on, can be more humane than all the dropping treats, and teaching a dog to focus on you.
Would you be an advocate of using an e-collar in this situation??