Since the beginning of Islam, Muslims are instructed to consume Halal food and avoid Haram food This was relatively easy 1400 years ago as Muslims used to eat from the animals they grow and slaughter according to Shariaa regulations in addition to crops they grow.
Eating something that is Haram knowingly is a major sin, and one that every Muslim should refrain from. Allah has provided us with such bountiful foods, and there is so much that we can enjoy, so we must make sure to stay away from that which is considered unlawful. It is also a sin if you neglect to find out whether the food is Halal or not, and it is best to stay away from foods that you are unsure of.
When understanding halal and non halal food, it is crucial to follow Islamic guidelines to ensure that what is consumed is lawful and beneficial. Avoiding what is Haram is not only a matter of faith but also of conscious living according to Islamic teachings.