you will need to use server side validation for this.
use number validation.
For the server variable, click the lightning bolt and select the donation amount form variable.
in the number validation settings, set the minimum to 0 and for the maximum, enter:
isset($_POST["target_amount"])?$_POST["target_amount"]:""