> I suppose it's meant to mean "do the exact work required by the rules governing your job and no more" but grammatically the sentence reads as though it's referring to the verb form of the word - i.e. "work in order to become a ruler within the organization."
“Work to rule” is an elision, short for “work according to rule”.