This idiom is used to give advice to someone. It usually implies that the advice is “good" or “right," like should and ought to. The idiom had better is always followed by the dictionary form of the action verb
You had better finish the assignment.
(It is a good idea to finish the assignment.)
They had better drink all of these sodas.
(It is right that they drink all of these sodas.)