It is meditating, that does not imply touching, it implys thinking.

I think what you did was fine. You established boundaries, the same way that everyone should. You didn't overreact and bind him. You just told him that what he did wasn't ok. If you just accepted what he said, you would be inviting the same behavior at a later time.