Don't think front-ported speakers or speakers without rear ports can be generally placed directly against or near a front wall. These speakers need room to breathe. However, there are high-quality speakers specifically designed to be positioned close to or against a front wall, such as the D&D 8c.
https://www.stereophile.com/content/dutch-dutch-8c-active-loudspeaker-system
https://www.youtube.com/watch?v=j38gkS-Q8f8