idiom
give someone a hard time
誰かを批判したり厳しく扱うこと
Meaning
to criticize or treat someone harshly
Example
The boss **gave me a hard time** for being late.
上司は遅刻したことで私を叱った。