can i replace the processor of acer E5-573G-380S from i3 to i5

On that machine, you really can't. You might consider building a custom desktop system, which could be done relatively cheaply, and use the laptop for other endeavors like work and office type uses. Laptops aren't intended to be upgradeable and are a poor choice for gaming IMO. Even high end models suffer from a lack of performance and on those few, but expensive models that really do have high performing hardware compared to even middling desktop systems, heat becomes a major factor because it's almost impossible to have comparable gaming performance to a desktop or mini-ITX system and get the heat from high performance hardware out using tiny little fans.