Dynamic mechanisms of strengthening and softening of coherent twin boundary via dislocation pile-up and cross-slip