As they were acting on a complaint (breach of AVO), they had a lawful excuse to be on the property & you would have done well to co-operate...refusing to even open the door was just plain silly.... That then gave them the right to take you into custody for (at the least) questioning in regard the breach... Continued refusal to co-operate means you were now resisting, which gave them lawful excuse to charge you with that & use reasonable force.