I agree with Exception, JQuery is much easier to work with than the model itself for accomplishing this kind of functionality. However that being said with no experience in Javascript/Jquery its worth having a look at the documentation for JQuery here.
You will also find great tutorials here
And the most important part, the actual JQuery library file here. You can download the file and include it in your solution OR simply include a link to a server hosted CDN version of the file in the header of your view. (both options have instructions provided on the link I gave you)
An update to Exceptions answer however, you do not include the functionality required to only allow integer values in the input controls. To fix this simply change the inputs type attribute to "number" like this.
<input type="number" id="Max" name="Max" />
And modify the Script to remove parsing of String to Integer like this:
$("#Max").focusout(function(){
if( $(this).val() < $("#Min").val() )
{
$("#errormess").html('Max value cannot be lower then min Value');
}
else{ $("#errormess").html(''); }
});
$("#Min").focusout(function(){
if( $(this).val() >= $("#Max").val() )
{
$("#errormess").html('Max value cannot be lower then min Value');
}
else{ $("#errormess").html(''); }
});