The Supreme Court is weighing a case that could radically transform the way elections are conducted in the U.S.

The case — Moore v. Harper — dates back to the spring, when the North Carolina Supreme Court ruled that the state's newest congressional redistricting map was unconstitutionally partisan. Some experts and officials are warning that the future of democracy is on the line.

Dan Goldman, who will soon represent lower Manhattan and parts of Brooklyn in Congress, joined Errol Louis on "Inside City Hall" Wednesday to discuss the case.

"It has gained a groundswell of support on far-right, extreme views, because the Republicans want to gerrymander as much as humanly possible," Goldman said. "They want to restrict access to the ballot. They want to allow for rogue operators to decide who is actually elected."

Goldman, who previously served as a federal prosecutor and the lead counsel in the first impeachment trial of former President Donald Trump, hopes that judges realize that "any give [in this case] will open the door to pushing the envelope more and more and more."

"It will be a slippery slope, and it's an incredibly dangerous, slippery slope," Goldman said.

Later in the interview, Goldman also discussed the Trump Organization being found guilty on all counts of criminal tax fraud, Rep. Hakeem Jeffries making history as the first Black party leader in Congress and Sen. Raphael Warnock's win over Herschel Walker in the Georgia Senate runoff election.