Help! I need to make 2 decisions in my code and cannot figure out how to write the code that will return the user to the scanf point once an error message has appeared.

do
{
printf("Enter the number of deposits (0-50): ");
scanf ("%i", &number_of_deposits);

if (number_of_deposits <= 0)
printf("ERROR! - Please enter a non-negative number!\n");
else (number_of_deposits >=50 );
printf ("***Too many deposits.\n");

} while (number_of_deposits <= 0);

I can get the first error statement to return to the "Enter the number of deposits", but not if data is entered to make the second error appear. Any ideas?