Does Play X go into effect immediately?
Yes.
This is answered in the online Fluxx FAQ:

Q: Suppose the rule is Play 2 and for my second play I change the rules to Play 3. Do I play one more card or am I done because I played 2?
A: All rules take effect immediately, so you would need to play 1 more card because the rules at that point had become Play 3.