IMAP can check for mail without downloading. But apparently Gmail doesn't support that.
You can do this the other way round. Use a local email client such as Thunderbird on desktop or FastMail on Android to check Gmail and any other email accounts you have.