Metta World Peace claims he and his family have been targeted by a deranged woman who's threatened violence, attacked his property and waited for his kids after school ... and now, he's obtained a restraining order against her.
TMZ Sports has learned ... Peace went to the LAPD and told cops a "stranger," named Miesha Shakes, had been harassing him in a series of disturbing emails dating back to 2015.
Peace says the emails contained violent threats -- including one that read, "I apologize in advance, I'm going out with a bang.