Changing the circumstance

I would like to make sure that I understand the concept of changing the thought vs. changing the circumstance.  In extreme circumstances, like situations where a person is victim of abuse, would this idea (that people should try to feel good before changing the circumstance) still apply?  Wouldn’t this idea in this particular case lead to situations where people avoid rising up against bad conditions?  Thank you for your help.