know what is what, know one's stuff informal
To be aware of a situation, especially of the consequences of misconduct.