Attendees react as Republican presidential candidate Sen. Ted Cruz, R-Texas speaks at Charlie's Steakhouse at the Carrollton Inn in Carroll, Iowa, Monday, Jan. 4, 2016. Photo: AP Photo/Andrew Harnik

Attendees react as Republican presidential candidate Sen. Ted Cruz, R-Texas speaks at Charlie's Steakhouse at the Carrollton Inn in Carroll, Iowa, Monday, Jan. 4, 2016. Photo: AP Photo/Andrew Harnik

Texas Sen. Ted Cruz says the U.S. Supreme Court is “out of control” and if Hillary Clinton is president she will appoint justices to solidify an “ultra-liberal, lawless majority” and make it illegal to own a firearm.

The Republican presidential candidate made the comment Monday during an event in Winterset, Iowa, where he took questions from Focus on the Family evangelical leader James Dobson.

Cruz says the next president will appoint up to four Supreme Court justices, and if it’s Clinton, the court will rule that the government can make it a felony to own a firearm. That motivated one person in the crowd to shout, “Come and take it!”

Cruz quipped in reaction, “I think Iowa and Texas have some things in common here.”

Cruz says the Supreme Court’s recent rulings upholding President Barack Obama’s health overhaul law and allowing same-sex marriages are “fundamentally illegitimate” and were “lawless and will not stand.”