I have a 2006 Z4 2.5si Sport, and I've had some issues with the electronics and sensors, which seems common with these models. :| The mileage was accurate, but I’d recommend checking the vehicle’s history. You can use sites like https://carcheckexperts.co.uk/ or others for that.
Good luck!