'd better / 'd rather (B1 Grammar)

Use 'd better (= had better) + the base verb for strong advice or a warning: do this, or something bad will happen. It's stronger than "should". In careful speech and writing, keep the 'd (had); you'll also hear a casual "you better", but you'd better is the safe form to use.

'd better + base verb: strong advice

'd better not + base verb

For the negative, put not straight after: 'd better not + the base verb. (Not "don't had better".)

'd rather + base verb: what you prefer

Use 'd rather (= would rather) + the base verb to say what you prefer. No to after it.

'd rather not + base verb

For the negative, put not straight after: 'd rather not + the base verb. Still no to. (Not "'d not rather" and not "don't rather".)