How Determine Sensing Resistor Value?

Hi, I am planning to use stepper motor 42BYGHD-444 . And the current rating is 0.5 A. May I know 0.5A is maximum current rating ? I am wonder what suitable value of sensing resistor is require to make sure the motor work without over current .
Let say my Sensing reference voltage is 0.5 V. So can I put sensing resistor value with 1 ohm ? to limit current to 0.5 A ? or what suitable value can of sensing resistor can I use for this model of stepper motor with reference voltage 0.5 V?
Let say my Sensing reference voltage is 0.5 V. So can I put sensing resistor value with 1 ohm ? to limit current to 0.5 A ? or what suitable value can of sensing resistor can I use for this model of stepper motor with reference voltage 0.5 V?