my cousin was harassed

I was walking to school with my cousin and when walking there’s some random guy harassed my cousin by calling “montok bgt badannya” you could translate it. Then we said “f*** off” i think that scared him because then he ran away from us.