Maximum mass of compact stars from gravitational wave events with finite-temperature equations of state