Jimmy concentrated hard - this would be his last wish, and if he didn't get it right he'd end up as a permanent sex toy. A wish was a statement - what if he strung the statement together and didn't end the wish with one thing? It was worth a try.
"Genie, I wish that I could control my sex drive and choose who I want to be sexually attractive to and that my sexual partners and I can transform each other any way that we want and that you will not ever use your magic on me again."
"What?! You can't do..." The Genie stiffened suddenly and a blue glow surrounded her. Jimmy yelped as a matching blue glow surrounded him, but then realized that he no longer had an uncontrollable urge to masturbate.
The glow faded from both, and the Genie shook herself. "Cursed brat! I cannot refuse a legal wish, and it seems you somehow got everything you asked for!" Then she snarls. "Or maybe not. Spend eternity as a goat!" She shot purple bolts of magic at Jimmy.
Nothing happened. Jimmy grinned. "Like you said, I got everything I asked for." He started masturbating again. "Let's see if I count as my own sexual partner." He matured a little, not quite back to his original 17,more like an athletic 15 year-old. "Yep." He grinned at the Genie. "Don't you have someone else you can try to screw up? Your tricks don't work on me anymore."
"AAAUUUGH!" The Genie vanished in a puff of really nasty-smelling smoke.
"Now then." Jimmy stood up and stretched. "I can have some real fun." He headed out side to see who he wanted to try his powers on first.
However, the Genie was already plotting revenge. No one had ever gotten the best of her in five thousand years! But he had done a good job, curse him. Her magic would not affect him any more. Then an evil smile crept over her face. Not her magic... he had wished that his sexual partners and he could transform each other any way that they wanted. If she could trick him into having sex with her, disguised as someone or something else, she could use his OWN power against him!