The else doesn't have the : at the end and some of the spacing was off. Here's the corrected version hope this helps.
command /prestige:
trigger:
if the level of player >= 100:
broadcast "%player% has prestiged!"
set the level of player to 0
add 1 to {prestige::%player%}
else:
message "&7You need 100 levels to prestige!" to player