knew what they were doing
Quien lo hizo, sabía lo que estaba haciendo.
Whoever did it knew what he was doing.
Tom sabía lo que estaba haciendo.
Tom knew what he was doing.
I knew what I was doing.
Yo sabía lo que estaba haciendo.
I knew what I was doing.
Me dice que el que lo ha hecho sabía lo que estaba haciendo.
He tells me that whoever did it knew what they were doing.
— El guardián invisible (2017)