China is North Korea 's only important ally and by treaty returns North Koreans , who Beijing regards as illegal immigrants and not as refugees .