How to stop bots on website?

I am seeing an unusual traffic ocming to my website and making my server down that cause my site to open after 5 minutes. Anyone please suggest me how can I stop this bots on my website
I have also attached a screenshot in which you can easily see that the real time users and down the traffic in organic is change. Please help me out

Hi there,how did you get this?