Term: frenemy
Example: zack is john's frenemy
Definition: someone who is both friend and enemy, a relationship that is both mutually beneficial or dependent while being competitive, fraught with risk and mistrust