Slang meaning of Keep it in your pants

Keep it in your pants means: to abstain from sex, literally to keep your penis under wraps and not in the pants of some hoe.