The grammar is OK, but I am not sure that it is saying what you intend. I don't see the connection between the restrictions and the variable step size.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.