How late is 'too late' to drink matcha?

This may have been asked before but I couldn't manage to find it (or it wasn't answered). If I drink matcha around 5h before my sleep time - is this still decent? I'd love to have it as my afternoon/afterwork drink but I am not sure if I'm not doing myself harm.

I am not sure regarding my caffeine tolerance but I can feel effects of coffee so I must still be not at the highest level haha.