When I last worked with USB, there were all sorts of resistors over the pins telling you about its capabilities. I'm pretty sure usb-c has that as well. Your device should check the spec of the cable and inly draw the amount if power its rated for
I = V/R