Torah Temimah cites Bava Kamma 105b.
“And he denied it” — we have learned the penalty; from where the warning? Scripture says “you shall not deny” (Kedoshim).
Linkage of onesh to azharah — penalty and prohibition paired.
No punishment without a prior prohibition — here supplied from Kedoshim. The asham structure rests on both the warning and the penalty.