[msan] Fix origin copying.

Conditions for the first and the last origin value in range were wrong.