To show a person up means to disclose that person’s bad nature or illegal ways.
1. Swati warned Suresh that she would show him up if he did not mend his ways soon.
2. The teacher warned Shyam and Bholu that if they did not improve they would not only be shown up in front of the whole class but could also receive punishment.