Fairly well, actually. I think the gate was close enough to the tree that he could jump in and be under the tree, but there wasn't enough space to bat at things. Plus he's not a climber, so I had that in my favor as well!
This year I ended up putting one of those baby gate systems around the entire tree. He circled the gate like a velociraptor looking for a weakness in the fence.