@marine85 You really don't need stall detect. If the Z axis is 300 mm long, send the bed to Z=305. It's going to stall when it gets to Z=300 because you've set up physical stops that prevent it from going any further.
Reducing the current when you get close to Z=300 is probably a good idea, especially if you have a lot of torque available in the Z axis.