If an offense is punishable under § 154.510 of this code and also under § 154.517 of this code, the punishment prescribed by § 154.517 of this code controls.