Restrict user from editing his/her user account

Your best option would be to redirect.

if($current_user->is_admin == false)
{
echo ‘Admin’s Only’; // OR REDIRECT TO HOME PAGE

SugarApplication::redirect(‘index.php?module=<MODULE_NAME>&action=&record=<RECORD_ID>’);
}