You must make an effort to get along with everyone.
Shouldn’t it be “…effort AND get along with…” instead of “to”?