The minimum and maximum settings of numeric questions support Sawtooth Script. So as long as these two questions are on different pages, you can set the second one's maximum to something like this:
[% Q1 %]
or this, if you need the value to be less than:
[% Q1 - 1 %]
"Q1" being the name of the first question, of course.