The only safe way is to switch the step/dir signals, you will 99% blow the drive if you swap the motor wires when the drive is powered up.