You can and should go get a restraining order from the court. You can go to the Family Law Facilitator's office at the courthouse located at 111 N. Hill Street, Los Angeles (Fourth Floor) and they will help you fill out the paperwork. There is no charge for this, and the court filing is also free. There might be a similar service in Compton, I'm just not sure. You can call them (the Compton Superior Court - ask for the family law or domestic violence clerk) to see if they offer this service. You should be able to get restraining orders to protect you, your child and anyone else living in your home. Good luck with this.
To add to what Mr. Waller advised above, be specific in your descriptions of the threats and past violence. Indicate the actual date of each threat if you can. If the threats are vague ("I'll take care of you"), be sure to include the context of the threat and why you believe it to be a threat. Good Luck and Stay Safe.
David C. Beyersdorf