Easy. If the officer draws down on you. Do what he says. This means kneeling if he asks you to kneel.
Do not get shot.
Sort things out later.
If you are Not having a pistol drawn on you; the officer isn't concerned that you will be a threat- and you may politely disregard the request to disarm, kneel, get down on the ground, etc.
If you are being detained for an investigation; which often happens with OC- you will be required to do what the officer says. If you are asking if you are free to go and you learn that you are not free to go... you must comply. (You are being detained)
Again... Do not get shot.