I think the thing to be aware of is if you're going up a hill, then, if the motor is trying to go faster but can't (because it's not powerful enough), AND if maximum power is being put into it (you'll see this in bars on your LCD display I believe), then I gather this extra electricity which is going into the motor (?) but not generating any extra power output, is generating heat instead, and can ultimately make the motor overheat after a period. This could be a short period if it was a very steep hill, maybe a longer period if it was less steep.
So in principle raising the speed limit can mean the motor is running hotter for longer going up hills at high levels of assist. Although that's probably mostly down to the assist level.
I think the key on those hills to avoid motor damage, is to have the assist level and bike gears, at such a setting that the power bar isn't putting out the maximum. Or walk up. Maybe others will correct me.