You're flying a STAR. Therefore follow the STAR. Those height restrictions are there to fit in with various airspace/traffic patterns, therefore,if you are on a STAR, follow the STAR. If the restrictions were not to be applied, then you would have just been 'cleared direct XXX descend to FLxxx'. If in doubt, ASK!