Based on the solution of q2apro at this post:
$rules['closeable'] = (qa_get_logged_in_level()>=QA_USER_LEVEL_ADMIN) && (!$rules['closed']);
But I don't know why I can't limit permission to close question from EDITOR and higher by using this:
$rules['closeable'] = (qa_get_logged_in_level()>=QA_USER_LEVEL_EDITOR) && (!$rules['closed']);