I wonder if "telling(1), telling(2)" is gerund or anything.
1. Who do you think you are, telling me what to do.
2. You have some nerve, telling me what to do.
"telling" in both of your sentences acts as a participle.