If you are an adult, and clearly an adult, then it's probably too old.
I'll still give you candy if I answer the door, but that is probably where you might creep some people out, or they give creeper vibes and don't trust answering the door.
That said, in my own experience, you are too old to trick or treat once you pass about 5'6" (~165 cm).
I remember finding out I was too old. After an event, some friends wanted to go trick or treating. I was in high school still, but just shy of 6 feet. Female friend the same age was just over 5', and another female friend that was a few years older was about 4'9".
Anyways, they trick or treated fine, and I got stares, and clearly treated differently. Clearly trick or treating is not about age, but perceived age. (and effort. If you're short and all covered up in your costume, no one will know or care... long as your voice isn't boss baby)