Your local DIY store should stock masking tape specifically for that. It is masking tape with about a six inches (or more) polythene "skirt" attached.
Worked like a charm for us, and is far cheaper in the long run. Gloss paint is the very devil to get off carpet.