Hi,
Your image did not show up but you can not change what you want from the web course configuration page. If you want to make the change for a single course, put the line
$problemDefaults{max_attempts} = 5;
in the course.conf file (you need admin privileges to edit this file using the
file manager) or you can edit it if you can login to the server. If you don't have access, talk to your sys admin.
If you want to make this change for all courses on your server
then in localOverrides.conf, change the line
$problemDefaults{max_attempts} = -1;
to
$problemDefaults{max_attempts} = 5;
Hope this helps,
Arnie