a sabiendas
He did it knowingly, aware that it was wrong.
—Did he know the risk? —Yes, he accepted knowingly, aware of the consequences.
He lied knowingly to avoid trouble.