Does 害虫 and 益虫 cover different types of animals? I’ve been looking into the word “pest”, and the dictionary showed me 害虫, but 虫 means insects, so I wonder whether the word 害虫 only means harmful insects or it also can be used to refer to other pests like snakes or rats?
害虫 and 益虫 can only refer to insects, animals like snakes or rats can be called 有害动物。

But nowadays terms like 害虫 or 有害动物 are getting less and less use.