A British idiom that means teasing or joking. To “take the piss” is to joke around, to “take the piss out of someone” is to tease them.
It’s the equivalent of the American phrase “mess with” or “screw round with.”
There are many conflicting stories of its origin.