How to limits Iout from 3A to 2A using LM2576?
The LM2576 is a fixed voltage regulator, it has no possibility to limit the current by itself.

The way to go here is to build a current limiting circuit, that measured the voltage drop over a shunt resistor. If this voltage gets higher than your threshold for 2A you have to manipulate the feedback voltage of the LM2576.