Particle separation and sorting techniques based on microfluidics have found extensive applications and are increasingly gaining prominence. This research presents the design and fabrication of a microfluidic device for separating cells using deterministic lateral displacement (DLD), enabling accuracy and continuity while being size-based. Nevertheless, it remains demanding, to completely reverse the detrimental effects of the boundaries that disturb the fluidic flow in the channel and reduce particle separation efficiency. This study introduces a novel approach to enhance the boundary structure of channels. By using this design, separation efficiency is boosted, and the fluid behavior around the walls is improved. The boundary correction (BC) enhances the operation of the microchannel and is very effective in microchannels. With boundary correction, the device exhibited improved separation efficiencies, but in its absence, separation efficiencies dropped. The collected microscopic images of the isolation of prostate cancer cell lines and red blood cells revealed promising outcomes. The efficiency of circulating tumor cell (CTC) throughput in the microfluidic channel, quantified as the ratio or proportion of tumor cells exiting the channel to cells entering it, exceeds 93%. Moreover, the efficiency of CTC isolation, expressed as the proportion of tumor cells from the upper outlet of the microfluidic channel to all cells, is over 89%. Additionally, the efficiency of red blood cell isolation, evaluated as the ratio of red blood cells from the lower outlet of the microfluidic channel to all cells, surpasses 77%. While using the same DLD separator without boundary correction reduced the separation efficiency by around 5%.