Wiktionary
give someone a hard time
vb. 1 (context idiomatic English) To cause difficulty or make trouble for someone. 2 (context idiomatic English) To tease, kid, or rib someone.