The acid in lime juice, and other citrus fruits, will actually "cook" the shrimp by breaking down the proteins and destroying any harmful bacteria, making it safe to eat. There is also the risk of overcooking, so you need to watch the amount of time you leave uncooked shrimp and other meat marinating in citrus.