First thing is to plan ahead and shift to the small ring before you absolutely have to.
I'm guessing you are using a compact double? If you shift early, before you're under full load, you'll be able to shift down at the front and up at the back simultaneously. If you're uncomfortable with that, I'd suggest shifting up at least one gear, maybe two, at the back a fraction before you downshift at the front.