Rule at our house...if you don’t have a costume you don’t get candy...plus we have a sign at our door which days...”no soliciting unless 14 or under”...I think that helps.
As I recall, some of the kids that looked too old to be trick or treating were probably in the 13-14 age range, and some of them probably looked older than they were. So we gave them the benefit of the doubt.