Judge Andrew Napolitano said Tuesday that President Donald Trump is partially correct when he says that unknown individuals involved in leaking information from inside his administration are prosecutable.

However, Napolitano warned that not all of the leaks that Trump criticizes are criminal acts.

Spicer Collects White House Staffers' Phones in Effort to Find Leakers

Judge Nap: How Trump's New Immigration Order Could Be 'Bulletproof'

Judge Nap: New Immigration Order Better Choice Than Appealing 9th Circuit Decision

He noted that Trump believes Obama administration "holdovers" in various bureaucratic departments are leaking information to the press and other entities that then release the findings to the public.

He said that includes partial transcripts from former National Security Adviser Michael Flynn's discussion with a Russian envoy, as well as intelligence community rumblings.

"These types of leaks are criminal because they do release national security-protected top-secret information," Napolitano said.

But, leaks from within the White House proper, wherein reporters gain scoops and off-the-record details from anonymous staff members, are not, he said.

"That's the stock and trade of both people and reporters in the White House," Napolitano said, citing the First Amendment's protection of the press.

All past presidents have "articulated and recognized" the value of the press, including Richard Nixon, for whom the press may have accelerated his downfall, the judge said.

Judge Nap: Intel Community 'Shadow Gov't' Is Working Against Trump

Judge Nap: Leaks Mean Trump Must Fear His Own Intel Community

Judge Nap to Trump: Tear Up Immigration Order and Write a New One