Illinois banned free blacks from moving into the state. Free blacks who were already there were severely restricted.
And yet their numbers increased by about 40% between 1850 and 1860.
Between 1850 and 1860 the black population of Illinois grew faster than the black population of Florida and Georgia and Alabama. The black population of Mississippi and Arkansas actually shrank. And whatever restrictions were placed on blacks in Illinois paled in comparison to those imposed on blacks in the South where they were also denied entry to states unless they were property, severly denied and restricted in freedom, and were expelled from some states.