5 speed manual transmission drives good through 1st through 4th gear won't go into 5th it's a 04 Acura with a 2. engine would it be fine to drive 1 through 4th or is something else going out or would it hurt transmission
David's comment is correct. It's either the linkage, a damaged or bent shift fork, or something wrong with a synchronizer or internal transmission component.
Try shifting into 5th with the engine off, vehicle not moving, and the clutched pressed in. If you still can't get into 5th easily, it's most likely mechanical linkage or a shift fork.
If you can get into 5th easily enough when not running, it's probably a failure of a synchronizer or part of the gear train. When running 40-50 mph in 4th gear, try shifting into neutral, release the clutch, then press the clutch pedal again and attempt to shift into 5th. If you can get into 5th with this "double clutch" method, it's probably a bad synchro unit.