It’s a matter of personal preference, it can go on either way. I find it looks better when applied after clear coat.
Good luck. I hope it goes well. It can be frustrating until you get the hang of it. Some guys really dislike foiling, but it’s one of my favourite parts of the build. The model comes to life once the foil is on.