What can keep us from loving like God?

1 John 3:11-18 (CSB)
11 For this is the message you have heard from the beginning: We should love one another, 12 unlike Cain, who was of the evil one and murdered his brother. And why did he murder him? Because his deeds were evil, and his brother’s were righteous.
13 Do not be surprised, brothers and sisters, if the world hates you. 14 We know that we have passed from death to life because we love our brothers and sisters. The one who does not love remains in death. 15 Everyone who hates his brother or sister is a murderer, and you know that no murderer has eternal life residing in him. 16 This is how we have come to know love: He laid down his life for us. We should also lay down our lives for our brothers and sisters. 17 If anyone has this world’s goods and sees a fellow believer in need but withholds compassion from him ​— ​how does God’s love reside in him? 18 Little children, let us not love in word or speech, but in action and in truth.