
Samsung Galaxy Ace 4
Every official firmware build for SM-G313MY, newest first: one row per build with all regions (CSC) that received it.
Each firmware build has its own page at https://samfirm.shop/build/{PDA}, where {PDA} is the build number from the list above. Example: https://samfirm.shop/build/G313MYUHU0AOE1
Specifications of SM-G313M, a regional variant of the same device. Chipset and SIM lines are left out: they can differ by region.

SM-G313U

SM-G316MY

SM-G318MZ

SM-G310HN

SM-G5109
You can find the firmware on the model: SM-G313MY page.
Yes, all firmware files for SM-G313MY are 100% official, original, and obtained directly from Samsung servers.
To flash SM-G313MY, you need to download the appropriate firmware, put your device into Download Mode, and use the Odin tool to load the BL, AP, CP, and CSC files.
Downgrading is only possible if the bootloader version (binary bit) of the old firmware matches the current one. Always check the binary version before flashing SM-G313MY.