New York City Councilman Mark Levine told CNBC on Wednesday that city officials have to consider the ripple effects of any mandatory closures due to the coronavirus.

"Because every one of these actions has a real cost, it has to be taken by weighing the pros and cons and a real sober assessment of risk," Levine said on "Squawk Box."

Levine, who chairs the council's health committee, said a hypothetical school closure demonstrates the complexities at hand.

"All of these decisions have major costs. If we close the schools, hundreds of thousands of kids will have nowhere to get lunch and breakfast," Levine said. "Parents will be home providing child care, unable to go to work."

Levine's comments came one day after Mayor Bill de Blasio said new cases of the coronavirus in the city were "coming in so intensely."

As of Tuesday afternoon, de Blasio said almost 2,000 city residents were in voluntary isolation while 30 people were in mandatory quarantine.

Levine said the city may soon offer a general recommendation for all residents to avoid large public events.

More than 120,000 cases of the coronavirus have been confirmed across the globe, including more than 1,000 in the United States. New York state has more than 170 confirmed cases, the second most in the U.S., behind Washington state.

Levine said the spread of the coronavirus in New York City, which as of Wednesday morning has 46 confirmed cases, is "beyond the point where we can contain individual cases, where we can track down patients and trace all their contacts."

"It's out their in the general population. That's what we call community spread," he said.