Even with a properly functioning Macbook or iPhone, you can damage your ears if the volume is too high. In the EU, there are limits to how high you can turn up the volume in an attempt to prevent this.
Your (good) headphones most likely have a hardware limiter that prevents them for blowing up (of course there are exceptions I know)