By keeping them out of my home.
I live in Hong Kong, very warm and wet. We simply have mosquito nets on every window. Alternatively you can try to live higher.
But even without those, I don’t really see much people having this problem. Perhaps it’s sampling bias.
They don’t harm your computer like insects do. Problem solved :>