This phrase means to keep something in control.
Imagine something that you don't want to happen, like crime. We can't completely stop crimes from happening, but we can "keep it in check" so that people are safe most of the time.
Other things that you might "keep in check" include:
- negative emotions
- alcohol use
- weeds in your garden