Question: how do i download apps on my samsung a51?
Answer: First of all, go to Settings and under System you will find "Security". ... 
Then choose "Unknown sources" and tick it.
You should get the information that installing an application from unknown sources could be very harmful to your device.