This idiom or expression means:
Details are important.
Overlooking the little things can get you into trouble.
Also, sometimes details can ruin something by making it too confusing
Q. This looked so simple! How did we get in trouble?
A. The devil’s in the details! We simply should have been more careful.