That's what makes them illegal. The judge has literally tainted the jury. That's against the law.I wouldn't call the instructions "illegal" but rather disingenuous. They are designed to try to force a particular conclusion rather than give the jury a clear understanding of the elements of the crime to weigh the evidence against.

