You need to use a Power Adapter adequate to charge your Mac computer. When using a USB-C charging cable, the maximum power transfer between the Power Adapter and Mac will be limited by the cable.
As such, if the Mac requires less power than the charging cable is rated, all will be well. If the Mac requires more power than either the cable or Power Adapter is rated, charging will be limited to the lower of the the cable or power source power rating.
Also consider that battery charging will simply be slower than the maximum supported rate if the charging source is less than the maximum supported by your Mac.
In summary, you generally only need to consider the Power Adapter and charging cable if you need to charge the Mac at its fastest possible rate. Providing that each component is otherwise healthy, no harm will come to the Mac, charging cable or Power Adapter when charging over a USB-C connection.