Sorry but thats just a bad design if the input and output are using the same connector.
You didn't specify what sort of current, but it doesn't look to high, so a schottky diode on the input or output would be an option. On input you'd need to figure out if switcher is damaged at all when backfed, if output you may need to adjust the voltage up a bit from 8V.