It is the jury's job to evaluate the credibility of the witnesses, and it is the judge's job to inform them of that responsbility.
It is not appropriate, however, for the judge to indicate to the jury what answer they should come to on those questions.
In Quercia v. United States, 289 U.S. 466 (1933), the defendant in a drug case took the stand to deny the charges. Before the jury went to deliberate, the judge made the following observation:
I am going to tell you what I think of the defendant's testimony. You may have noticed, Mr. Foreman and gentlemen, that he wiped his hands during his testimony. It is rather a curious thing, but that is almost always an indication of lying. Why it should be so we don't know, but that is the fact. I think that every single word that man said, except when he agreed with the Government's testimony, was a lie.
The jury convicted, but the U.S. Supreme Court reversed, holding that the instruction was an error. It said that the judge has the right, generally speaking, to comment on the evidence, but that right is not unlimited, because juries are likely to be swayed by the judge's assessments, even if he instructs them to make their own decisions:
The influence of the trial judge on the jury is necessarily and properly of great weight and his lightest word or intimation is received with deference, and may prove controlling. This court has accordingly emphasized the duty of the trial judge to use great care that an expression of opinion upon the evidence should be so given as not to mislead, and especially that it should not be one-sided; that deductions and theories not warranted by the evidence should be studiously avoided.
The comment you seem to be imagining is a closer call than this, but I think most judges would agree it would be inappropriate.
At a preliminary hearing, though, where there is no jury, there is no real problem with the judge making that comment. If I were the defense attorney, I'd be glad he did, as it would help inform my decision about whether to pursue a jury trial or a bench trial.