This is just a poor translation. It's a colloquialism to say you're jacking off when you're lazy and doing nothing. In fact, it's the same colloquialism in English. We literally say the exactly same thing when we call someone useless. What's really interesting in my opinion is you already know this. Yet because it's from a translation and you know that, your brain didn't think about the colloquialisms. It's kind of crazy how our brains work.
I'm aware of the colloquialism but I also thought that this is something Chinese party officials might plausibly say. You know, something something Western decadence.
Leave a man idle enough time and he'll end up masturbating that's where the relationship goes to the colloquialism for everyone. I cna tell you in Spanish we use the same colloquialism.