I can only use "knock it off" as imperative: "stop it!". It doesn't seem right to say "she knocked it off" for "she stopped" (that only means she made it quickly, e.g. a pot), or "knock off complaining". But knock off also means stop work: we knocked off at four o'clock.