idiom
give someone a hard time
criticar o tratar a alguien con dureza
Meaning
to criticize or treat someone harshly
Example
The boss **gave me a hard time** for being late.
El jefe me dio un mal rato por llegar tarde.