Yeah I don't think you should use the crate as a form of punishment or she will end up not liking the crate, which could be bad because they come in very useful at times.
Just stick with the stern no when she does it in the wrong place and praise her and give her a little treat when she does it right