The correct answer is:
C. Have a rest
So the complete sentence would be: "We’d better stop to have a rest and continue working."
However, it's worth noting that "stop having a rest" doesn't make sense contextually, since "having a rest" does not imply an action that can be stopped in this context. The use of the infinitive "to have" suggests the purpose of the stop, which is appropriate here. If it's not an exam question, you could also use "stop for a rest," but that's not one of the given options.
