Olivia Wilde learned this big lesson from the “terrible” career advice she was given