Corrections Act 2004, s 84
Prison guards aren’t allowed to provoke you (deliberately offend or anger you). They can give you lawful orders and can give you information (like saying what the prison rules are), but they can’t deliberately act or speak in a way that’s likely to provoke you. If you feel that you’re being deliberately provoked you should make a complaint
See the chapter “Making complaints about your treatment”
If you’re not happy about a lawful order that a prison officer has given you, you still have to follow the order, but you can then lay a complaint about it.