If you knowingly do something wrong, you do it even though you know it is wrong.
He repeated that he had never knowingly taken illegal drugs.
他反复说自己从未故意吸毒。