Require admin password when changing Mac Wi-Fi
Go to System Preferences → Network preference pane.
Unlock the pane using the lock button in the bottom-left and authenticating.
Choose Wi-Fi in the services list, or whatever you called your Wi-Fi service.
Click Advanced….
Enable ‘Require administrator authorisation to: Change networks’.
OK and Apply.