The safest approach is simple: inspect strawberries carefully, wash them under clean running water, and discard any fruit that contains visible larvae, mold, significant damage, or signs of spoilage.
A little attention when preparing fresh fruit can help keep your food both safe and enjoyable.